Package jgl.context.clipping
Class gl_clipping
- java.lang.Object
-
- jgl.context.clipping.gl_clipping
-
- Direct Known Subclasses:
gl_2d_clipping,gl_cp_clipping,gl_vp_clipping
public class gl_clipping extends Object
gl_clipping is the clipping class of jGL 2.4.- Version:
- 0.6, 24 Nov 2006
- Author:
- Robin Bing-Yu Chen
-
-
Field Summary
Fields Modifier and Type Field Description protected gl_contextCCprotected floatt
-
Constructor Summary
Constructors Constructor Description gl_clipping()gl_clipping(gl_context cc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description gl_vertex[]clip_line(gl_vertex[] temp)protected gl_vertex[]clip_line(gl_vertex[] temp, int i)protected gl_vertex[]clip_line(gl_vertex[] temp, int i, int j)gl_polygonclip_polygon(gl_polygon inlist)protected gl_polygonclip_polygon(gl_polygon inlist, int i)protected gl_polygonclip_polygon(gl_polygon inlist, int i, int j)protected int[]inter_color(gl_vertex v1, gl_vertex v2)protected gl_vertexinter_point(gl_vertex v1, gl_vertex v2, int i, int j)protected gl_vertexinter_point_neg(gl_vertex v1, gl_vertex v2, int xy)protected gl_vertexinter_point_pos(gl_vertex v1, gl_vertex v2, int xy)protected float[]inter_tex(gl_vertex v1, gl_vertex v2)booleanIsInside(float[] p)protected booleanIsInside(float[] p, int i, int j)protected booleanIsInside_neg(float[] p, int xy)protected booleanIsInside_pos(float[] p, int xy)
-
-
-
Field Detail
-
CC
protected gl_context CC
-
t
protected float t
-
-
Constructor Detail
-
gl_clipping
public gl_clipping()
-
gl_clipping
public gl_clipping(gl_context cc)
-
-
Method Detail
-
IsInside_pos
protected boolean IsInside_pos(float[] p, int xy)
-
IsInside_neg
protected boolean IsInside_neg(float[] p, int xy)
-
IsInside
protected boolean IsInside(float[] p, int i, int j)
-
IsInside
public boolean IsInside(float[] p)
-
clip_polygon
protected gl_polygon clip_polygon(gl_polygon inlist, int i, int j)
-
clip_polygon
protected gl_polygon clip_polygon(gl_polygon inlist, int i)
-
clip_polygon
public gl_polygon clip_polygon(gl_polygon inlist)
-
-