public class Plane3DFloat
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private float |
A
The coefficients of the plane.
|
private float |
B
The coefficients of the plane.
|
private float |
C
The coefficients of the plane.
|
private float |
D
The coefficients of the plane.
|
private Point3DFloat |
normal
The normalized normal vector.
|
Constructor and Description |
---|
Plane3DFloat(float A,
float B,
float C,
float D)
Construct a Plane3DFloat using the coefficients A, B, C, D
|
Plane3DFloat(float x,
float y,
float z,
float A,
float B,
float C)
Construct a Plane3DFloat using a point [x, y, z] and a normal direction
A, B, C.
|
Plane3DFloat(Point3DFloat p,
Point3DFloat n)
Construct a Plane3DFloat using a point p and a normal direction n.
|
Plane3DFloat(Point3DFloat p1,
Point3DFloat p2,
Point3DFloat p3)
Construct a Plane3DFloat from 3 points, listed in the counterclockwise
direction as seen from outside the object.
|
Modifier and Type | Method and Description |
---|---|
Point3DFloat |
getNormal()
Returns the normalized unit normal of the plane.
|
boolean |
isInside(float x,
float y,
float z)
Returns true if the specified point is "inside" the plane.
|
boolean |
isInside(Point3DFloat p)
Returns true if the specified point is "inside" the plane.
|
float |
signedDistanceFloat(float x,
float y,
float z)
Signed distance to plane from point.
|
java.lang.String |
toString()
Returns a String representation of this plane.
|
private float A
private float B
private float C
private float D
private Point3DFloat normal
public Plane3DFloat(float A, float B, float C, float D)
public Plane3DFloat(float x, float y, float z, float A, float B, float C)
public Plane3DFloat(Point3DFloat p, Point3DFloat n)
public Plane3DFloat(Point3DFloat p1, Point3DFloat p2, Point3DFloat p3)
public Point3DFloat getNormal()
public float signedDistanceFloat(float x, float y, float z)
public boolean isInside(float x, float y, float z)
public boolean isInside(Point3DFloat p)
public java.lang.String toString()
toString
in class java.lang.Object