|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.ar.math.geom.Plane
public class Plane
Represents a geometric plane
Constructor Summary | |
---|---|
Plane(Point3 p1,
Point3 p2,
Point3 p3)
Constructs a plane from three points |
|
Plane(Point3 p,
Vector3 n)
Constructs a plane from a point and its normal |
Method Summary | |
---|---|
Vector3 |
getNormal()
Returns the plane's normal vector |
static Plane |
getVolatilePlane(Point3 point,
Vector3 normal)
Returns a volatile plane from a point and its normal |
float |
intersects(Ray ray)
Returns the t parameter for the intersection with the given ray. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Plane(Point3 p1, Point3 p2, Point3 p3)
p1
- Point 1p2
- Point 2p3
- Point 3public Plane(Point3 p, Vector3 n)
p
- Point contained by the planen
- Normal vector for the planeMethod Detail |
---|
public Vector3 getNormal()
public static Plane getVolatilePlane(Point3 point, Vector3 normal)
p
- Point contained by the planen
- Normal vector for the planepublic float intersects(Ray ray)
Ray.getPoint(float)
ray
- Ray to be checked
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |