|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csgeom.plane3.csPlane3
A plane in 3D space.
Field Summary |
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Constructor Summary | |
csPlane3()
Initialize to the xy plane (0,0,1,0). |
|
csPlane3(csVector3 plane_norm)
Initialize the plane with the given norm and D component = 0. |
|
csPlane3(csVector3 v2,
csVector3 v3)
Initialize the plane through 0 and the two given points. |
|
csPlane3(csVector3 v1,
csVector3 v2,
csVector3 v3)
Initialize the plane through the three given points. |
|
csPlane3(csVector3 plane_norm,
float d)
Initialize the plane with the given norm and D component. |
|
csPlane3(float a,
float b,
float c)
Initialize the plane to the given components. |
|
csPlane3(float a,
float b,
float c,
float d)
Initialize the plane to the given components. |
|
csPlane3(iPointer nPointer)
Create a java csPlane3 object which points to the native csPlane3 nPointer. |
Method Summary | |
float |
a()
Return the A component of this plane. |
float |
b()
Return the B component of this plane. |
float |
c()
Return the C component of this plane. |
float |
classify(csVector3 pt)
Classify the given vector with regards to this plane. |
static float |
classify(float A,
float B,
float C,
float D,
csVector3 pt)
This static function classifies a vector with regards to four given plane components. |
boolean |
clipPolygon(csVector3 pverts,
int num_verts)
Clip the polygon in pverts (having num_verts vertices) to this plane. |
boolean |
clipPolygon(csVector3 pverts,
int num_verts,
boolean reversed)
Clip the polygon in pverts (having num_verts vertices) to this plane |
float |
d()
Return the D component of this plane. |
float |
dd()
The D component of the plane. |
void |
dd(float DD)
The D component of the plane. |
float |
distance(csVector3 pt)
Compute the distance from the given vector to this plane. |
void |
invert()
Reverses the direction of the plane while maintianing the plane itself. |
protected boolean |
isNativePointerValidSafe(long nPointer)
|
protected void |
nDelete(long pointer)
|
csVector3 |
norm()
The normal vector (or the (A,B,C) components). |
csVector3 |
normal()
Return the normal vector of this plane. |
void |
normalize()
Normalizes the plane equation so that 'norm' is a unit vector. |
void |
set(csVector3 v2,
csVector3 v3)
Initialize the plane through 0 and the two given points. |
void |
set(csVector3 v1,
csVector3 v2,
csVector3 v3)
Initialize the plane through the three given points. |
void |
set(csVector3 normal,
float d)
Set the value of the plane using a normal and D component. |
void |
set(float a,
float b,
float c,
float d)
Set the value of the four plane components. |
void |
setNorm(csVector3 norm)
The normal vector (or the (A,B,C) components). |
Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, equals, finalize, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public csPlane3(iPointer nPointer)
nPointer
- public csPlane3()
public csPlane3(csVector3 plane_norm)
plane_norm
- public csPlane3(csVector3 plane_norm, float d)
plane_norm
- d
- public csPlane3(float a, float b, float c)
a
- b
- c
- public csPlane3(float a, float b, float c, float d)
a
- b
- c
- d
- public csPlane3(csVector3 v1, csVector3 v2, csVector3 v3)
v1
- v2
- v3
- public csPlane3(csVector3 v2, csVector3 v3)
v2
- v3
- Method Detail |
protected void nDelete(long pointer)
nDelete
in class csNativeObject
csNativeObject.nDelete(long)
protected boolean isNativePointerValidSafe(long nPointer)
isNativePointerValidSafe
in class csNativeObject
crystalspace.jbind.impl.csNativeObject#isNativePointerValidSafe()
public final csVector3 normal()
public final float a()
public final float b()
public final float c()
public final float d()
public final void set(float a, float b, float c, float d)
a
- b
- c
- d
- public final void set(csVector3 normal, float d)
normal
- d
- public final void set(csVector3 v1, csVector3 v2, csVector3 v3)
v1
- v2
- v3
- public final void set(csVector3 v2, csVector3 v3)
v2
- v3
- public final float classify(csVector3 pt)
pt
-
public final float distance(csVector3 pt)
pt
-
public final void invert()
public final void normalize()
public final boolean clipPolygon(csVector3 pverts, int num_verts)
pverts
- num_verts
-
public final boolean clipPolygon(csVector3 pverts, int num_verts, boolean reversed)
pverts
- num_verts
- reversed
-
public static final float classify(float A, float B, float C, float D, csVector3 pt)
A
- B
- C
- D
- pt
-
public final csVector3 norm()
public final void setNorm(csVector3 norm)
norm
- public final float dd()
public final void dd(float DD)
DD
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |