Represents a geometric plane. More...
Public Member Functions | |
Plane (Point3 p, Vector3 n) | |
Constructs a plane from a point and its normal. More... | |
Plane (Point3 p1, Point3 p2, Point3 p3) | |
Constructs a plane from three points. More... | |
Vector3 | getNormal () |
Returns the plane's normal vector. More... | |
Point3 | getPoint () |
Returns the plane's point. More... | |
float | intersects (Ray ray) |
Returns the t parameter for the intersection with the given ray. More... | |
Static Public Member Functions | |
static Plane | getVolatilePlane (Point3 point, Vector3 normal) |
Returns a volatile plane from a point and its normal. More... | |
Represents a geometric plane.
Constructs a plane from a point and its normal.
p | Point contained by the plane |
n | Normal vector for the plane |
Constructs a plane from three points.
p1 | Point 1 |
p2 | Point 2 |
p3 | Point 3 |
Vector3 com.beyondar.android.util.math.geom.Plane.getNormal | ( | ) |
Returns the plane's normal vector.
Point3 com.beyondar.android.util.math.geom.Plane.getPoint | ( | ) |
Returns the plane's point.
|
static |
Returns a volatile plane from a point and its normal.
point | Point contained by the plane |
normal | Normal vector for the plane |
float com.beyondar.android.util.math.geom.Plane.intersects | ( | Ray | ray | ) |
Returns the t parameter for the intersection with the given ray.
If plane and ray has no intersection returns -1 representing infinite. Value returned must be used with Ray#getPoint(float)
ray | Ray to be checked |