|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ProGAL.geom3d.Plane
public class Plane
A plane in (x,y,z)-space represented by a point and a normal. Assuming that p is a point on the plane and n is the normal vector, the half-space {q|pq·n>0} is called the 'upper halfspace' wrt. the plane and vice versa for the 'lower halfspace'. If the unit normal vector is n = (nx,ny,nz) and the point on the plane is p = (px,py,pz), then the plane has equation ax + bx + cx = d where a = nx, b = ny, c = nz, and d = px*nx + py*ny + pz*nz
Constructor Summary | |
---|---|
Plane(Point p,
Point q,
Point r)
Constructs a plane through three points using the first point as defining point. |
|
Plane(Point p,
Vector n)
Constructs a plane with the normal vector n containing point p. |
|
Plane(Vector n)
Constructs a plane with the normal vector n containing the point (0,0,0). |
Method Summary | |
---|---|
int |
above(Point p)
Returns 1/0/-1 if point p is above/on/below this plane. |
int |
below(Point p)
Returns 1/0/-1 if point p is below/on/above this plane |
Point |
getCenter()
Returns the defining point for this plane. |
double |
getDistance(Point p)
Gets perpendicular distance of point to this plane |
Point[] |
getIntersection(Circle circle)
Get intersection of a circle with the plane. |
Point[] |
getIntersection(Circle circle,
Vector u)
|
Point |
getIntersection(Line line)
Get the intersection of a line with the plane. |
Point |
getIntersection(LineSegment sgm)
Get the intersection of a segment with the plane. |
Line |
getIntersection(Plane pl)
returns the intersection line with another plane |
Circle |
getIntersection(Sphere sphere)
Get intersection of a sphere with the plane. |
java.lang.Double |
getIntersectionAngle(Circle circle,
Point p,
Vector dir,
J3DScene scene)
|
double |
getIntersectionParameter(Line line)
Get the line-parameter of the intersection between a plane and a line. |
Vector |
getNormal()
Return the normal defining this plane. |
Point |
getPoint()
Get the point defining this plane. |
double |
getUnsignedDihedralAngle(Plane p)
Get the unsigned angle between this plane and p. |
static void |
main(java.lang.String[] args)
|
Point |
projectPoint(Point p)
Get the projection of p onto this plane. |
void |
setNormal(Vector n)
Set the normal to n. |
void |
toScene(J3DScene scene,
java.awt.Color clr,
int size)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Plane(Point p, Vector n)
public Plane(Vector n)
public Plane(Point p, Point q, Point r)
Method Detail |
---|
public Point getPoint()
public Vector getNormal()
public void setNormal(Vector n)
public Point projectPoint(Point p)
public int above(Point p)
public int below(Point p)
public double getDistance(Point p)
public double getUnsignedDihedralAngle(Plane p)
public Point getIntersection(Line line)
public double getIntersectionParameter(Line line)
public Point getIntersection(LineSegment sgm)
public java.lang.Double getIntersectionAngle(Circle circle, Point p, Vector dir, J3DScene scene)
public Point[] getIntersection(Circle circle)
public Point[] getIntersection(Circle circle, Vector u)
public Line getIntersection(Plane pl)
public Circle getIntersection(Sphere sphere)
public Point getCenter()
getCenter
in interface Shape
public void toScene(J3DScene scene, java.awt.Color clr, int size)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |