|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Plane
public class Plane
| Nested Class Summary | |
|---|---|
static class |
Plane.Side
|
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Plane()
Default constructor - sets everything to 0. |
|
Plane(float a,
float b,
float c,
float d)
Construct a plane using the 4 constants directly |
|
Plane(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Plane(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Plane(IPlane rhs)
|
|
Plane(IVector3 rkNormal,
float fConstant)
Construct a plane through a normal, and a distance to move the plane along the normal. |
|
Plane(IVector3 rkNormal,
IVector3 rkPoint)
|
|
Plane(IVector3 rkPoint0,
IVector3 rkPoint1,
IVector3 rkPoint2)
|
|
Plane(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
float |
getd()
|
float |
getDistance(IVector3 rkPoint)
This is a pseudodistance. |
void |
getnormal(IVector3 returnValue)
|
Plane.Side |
getSide(IAxisAlignedBox rkBox)
returns the side where the aligneBox is. the flag BOTH_SIDE indicates an intersecting box. one corner ON the plane is sufficient to consider the box and the plane intersecting. |
Plane.Side |
getSide(IVector3 rkPoint)
|
Plane.Side |
getSide(IVector3 centre,
IVector3 halfSize)
Returns which side of the plane that the given box lies on. |
float |
normalise()
Normalises the plane. |
boolean |
operatorEqual(IPlane rhs)
|
boolean |
operatorNotEqual(IPlane rhs)
|
void |
projectVector(IVector3 returnValue,
IVector3 v)
Project a vector onto the plane. |
void |
redefine(IVector3 rkNormal,
IVector3 rkPoint)
Redefine this plane based on a normal and a point. |
void |
redefine(IVector3 rkPoint0,
IVector3 rkPoint1,
IVector3 rkPoint2)
Redefine this plane based on 3 points. |
void |
setd(float _jni_value_)
|
void |
setnormal(IVector3 _jni_value_)
|
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public Plane(InstancePointer p)
protected Plane(InstancePointer p,
boolean remote)
public Plane(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public Plane()
public Plane(IPlane rhs)
public Plane(IVector3 rkNormal,
float fConstant)
public Plane(float a,
float b,
float c,
float d)
public Plane(IVector3 rkNormal,
IVector3 rkPoint)
public Plane(IVector3 rkPoint0,
IVector3 rkPoint1,
IVector3 rkPoint2)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic Plane.Side getSide(IVector3 rkPoint)
getSide in interface IPlanepublic Plane.Side getSide(IAxisAlignedBox rkBox)
getSide in interface IPlane
public Plane.Side getSide(IVector3 centre,
IVector3 halfSize)
getSide in interface IPlanepublic float getDistance(IVector3 rkPoint)
getDistance in interface IPlane
public void redefine(IVector3 rkPoint0,
IVector3 rkPoint1,
IVector3 rkPoint2)
redefine in interface IPlane
public void redefine(IVector3 rkNormal,
IVector3 rkPoint)
redefine in interface IPlane
public void projectVector(IVector3 returnValue,
IVector3 v)
projectVector in interface IPlanepublic float normalise()
normalise in interface IPlanepublic boolean operatorEqual(IPlane rhs)
operatorEqual in interface IPlanepublic boolean operatorNotEqual(IPlane rhs)
operatorNotEqual in interface IPlanepublic void getnormal(IVector3 returnValue)
getnormal in interface IPlanepublic void setnormal(IVector3 _jni_value_)
setnormal in interface IPlanepublic float getd()
getd in interface IPlanepublic void setd(float _jni_value_)
setd in interface IPlane
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||