|
|||||||||||
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.plane2.csPlane2
A plane in 2D space. The plane is given by the equation AAx + BBy + CCz + DD = 0, Where (AA,BB,CC) is given by the vector 'norm'.
Field Summary |
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Constructor Summary | |
csPlane2()
Initialize to the xy plane. |
|
csPlane2(csSegment2 s)
Initialize the plane given a segment. |
|
csPlane2(csVector2 plane_norm)
Initialize the plane. |
|
csPlane2(csVector2 v1,
csVector2 v2)
Initialize the plane given two vectors. |
|
csPlane2(csVector2 plane_norm,
float c)
Initialize the plane. |
|
csPlane2(float a,
float b)
Initialize the plane. |
|
csPlane2(float a,
float b,
float c)
Initialize the plane. |
|
csPlane2(iPointer nPointer)
|
Method Summary | |
float |
a()
Return the A component of this plane. |
void |
a(float A)
Return the A component of this plane. |
float |
b()
Return the B component of this plane. |
void |
b(float B)
Return the B component of this plane. |
float |
c()
Return the C component of this plane. |
void |
c(float C)
Return the C component of this plane. |
float |
cc()
The C component of the plane. |
void |
cc(float CC)
The C component of the plane. |
float |
classify(csVector2 pt)
Classify the given vector with regards to this plane. |
static float |
classify(float A,
float B,
float C,
csVector2 pt)
Classify a vector with regards to three plane components. |
float |
distance(csVector2 pt)
Compute the distance from the given vector to this plane. |
csVector2 |
getNormal()
Return the normal vector of this plane ( version). |
void |
invert()
Reverses the direction of the plane while maintianing the plane itself. |
protected boolean |
isNativePointerValidSafe(long nPointer)
|
protected void |
nDelete(long pointer)
|
csVector2 |
norm()
The normal vector (or the (A,B) components). |
void |
norm(csVector2 Norm)
The normal vector (or the (A,B) components). |
csVector2 |
normal()
Return the normal vector of this plane. |
void |
normalize()
Normalizes the plane equation so that 'norm' is a unit vector. |
void |
set(csSegment2 s)
Initialize the plane given a segment. |
void |
set(csVector2 v1,
csVector2 v2)
Initialize the plane given two vectors. |
void |
set(float a,
float b,
float c)
Set the value of the four plane components. |
float |
squaredDistance(csVector2 pt)
Compute the squared distance between the given vector and this plane. |
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 csPlane2(iPointer nPointer)
nPointer
- public csPlane2()
public csPlane2(csVector2 plane_norm)
plane_norm
- public csPlane2(csVector2 plane_norm, float c)
plane_norm
- c
- public csPlane2(float a, float b)
a
- b
- public csPlane2(float a, float b, float c)
a
- b
- c
- public csPlane2(csVector2 v1, csVector2 v2)
v1
- v2
- public csPlane2(csSegment2 s)
s
- 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 float a()
public void a(float A)
A
- public float b()
public void b(float B)
B
- public float c()
public void c(float C)
C
- public static float classify(float A, float B, float C, csVector2 pt)
A
- B
- C
- pt
-
public float classify(csVector2 pt)
pt
-
public float distance(csVector2 pt)
pt
-
public csVector2 getNormal()
public void invert()
public csVector2 normal()
public void normalize()
public void set(float a, float b, float c)
a
- b
- c
- public void set(csSegment2 s)
s
- public void set(csVector2 v1, csVector2 v2)
v1
- v2
- public float squaredDistance(csVector2 pt)
pt
-
public float cc()
public void cc(float CC)
CC
- public csVector2 norm()
public void norm(csVector2 Norm)
Norm
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |