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_context
CC
protected float
t
-
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_polygon
clip_polygon(gl_polygon inlist)
protected gl_polygon
clip_polygon(gl_polygon inlist, int i)
protected gl_polygon
clip_polygon(gl_polygon inlist, int i, int j)
protected int[]
inter_color(gl_vertex v1, gl_vertex v2)
protected gl_vertex
inter_point(gl_vertex v1, gl_vertex v2, int i, int j)
protected gl_vertex
inter_point_neg(gl_vertex v1, gl_vertex v2, int xy)
protected gl_vertex
inter_point_pos(gl_vertex v1, gl_vertex v2, int xy)
protected float[]
inter_tex(gl_vertex v1, gl_vertex v2)
boolean
IsInside(float[] p)
protected boolean
IsInside(float[] p, int i, int j)
protected boolean
IsInside_neg(float[] p, int xy)
protected boolean
IsInside_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)
-
-