Modifier and Type | Field and Description |
---|---|
Point3F |
a
A
Point3F denoting the point A. |
Point3F |
b
A
Point3F denoting the point B. |
Point3F |
c
A
Point3F denoting the point C. |
static int |
RELATIVE_OFFSET_A_OFFSET
The relative offset of the A Offset parameter in the
float array. |
static int |
RELATIVE_OFFSET_B_OFFSET
The relative offset of the B Offset parameter in the
float array. |
static int |
RELATIVE_OFFSET_C_OFFSET
The relative offset of the C Offset parameter in the
float array. |
static int |
RELATIVE_OFFSET_SURFACE_NORMAL_OFFSET
The relative offset of the Surface Normal Offset parameter in the
float array. |
static int |
SIZE
The size of a
Plane in the float array. |
Vector3F |
surfaceNormal
The surface normal.
|
static int |
TYPE
The type number associated with a
Plane . |
Constructor and Description |
---|
Plane(Point3F a,
Point3F b,
Point3F c)
Constructs a new
Plane instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Compares
object to this Plane instance for equality. |
Point3F |
getA()
Returns the point A.
|
Point3F |
getB()
Returns the point B.
|
Point3F |
getC()
Returns the point C.
|
int |
getSize()
Returns the size of this
Plane instance. |
Vector3F |
getSurfaceNormal()
Returns the surface normal.
|
int |
getType()
Returns the type of this
Plane instance. |
int |
hashCode()
Returns a hash code for this
Plane instance. |
java.lang.String |
toString()
Returns a
String representation of this Plane instance. |
public static final int RELATIVE_OFFSET_A_OFFSET
float
array. The value is 0
.public static final int RELATIVE_OFFSET_B_OFFSET
float
array. The value is 1
.public static final int RELATIVE_OFFSET_C_OFFSET
float
array. The value is 2
.public static final int RELATIVE_OFFSET_SURFACE_NORMAL_OFFSET
float
array. The value is 3
.public static final int SIZE
Plane
in the float
array. The size is 4
.public static final int TYPE
Plane
. The number is 3
.public final Vector3F surfaceNormal
public Plane(Point3F a, Point3F b, Point3F c)
Plane
instance.
If either a
, b
or c
are null
, a NullPointerException
will be thrown.
a
- a Point3F
denoting the point Ab
- a Point3
denoting the point Ac
- a Point3
denoting the point Ajava.lang.NullPointerException
- thrown if, and only if, either a
, b
or c
are null
public Point3F getA()
public Point3F getB()
public Point3F getC()
public java.lang.String toString()
String
representation of this Plane
instance.toString
in class java.lang.Object
String
representation of this Plane
instancepublic Vector3F getSurfaceNormal()
public boolean equals(java.lang.Object object)
object
to this Plane
instance for equality.
Returns true
if, and only if, object
is an instance of Plane
, and their respective values are equal, false
otherwise.
equals
in class java.lang.Object
object
- the Object
to compare to this Plane
instance for equalitytrue
if, and only if, object
is an instance of Plane
, and their respective values are equal, false
otherwisepublic int getSize()
Plane
instance.public int getType()
Plane
instance.public int hashCode()
Plane
instance.hashCode
in class java.lang.Object
Plane
instance