math.geom3d.plane
Class Plane3D
- java.lang.Object
-
- math.geom3d.plane.Plane3D
-
-
Constructor Summary
Constructors Constructor and Description Plane3D()Plane3D(Point3D point, Vector3D vector1, Vector3D vector2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description Box3DboundingBox()Shape3Dclip(Box3D box)booleancontains(Point3D point)static Plane3DcreateXYPlane()static Plane3DcreateXZPlane()static Plane3DcreateYZPlane()doubledistance(Point3D point)Gets the distance of the shape to the given point, or the distance of point to the frontier of the shape in the case of a plain shape.booleanequals(java.lang.Object obj)booleanisBounded()Returns true if the shape is bounded, that is if we can draw a finite rectangle enclosing the shape.booleanisEmpty()Point3DlineIntersection(StraightLine3D line)Compute intersection of a line with this plane.Vector3Dnormal()Returns a normal vector that points towards the outside part of the plane.Point3Dorigin()Point3Dpoint(double u, double v)Point2DpointPosition(Point3D point)Point3DprojectPoint(Point3D point)Vector3DprojectVector(Vector3D vect)Shape3Dtransform(AffineTransform3D trans)Vector3Dvector1()Vector3Dvector2()
-
-
-
Method Detail
-
createXYPlane
public static final Plane3D createXYPlane()
-
createXZPlane
public static final Plane3D createXZPlane()
-
createYZPlane
public static final Plane3D createYZPlane()
-
origin
public Point3D origin()
-
vector1
public Vector3D vector1()
-
vector2
public Vector3D vector2()
-
normal
public Vector3D normal()
Returns a normal vector that points towards the outside part of the plane.- Returns:
- the outer normal vector.
-
lineIntersection
public Point3D lineIntersection(StraightLine3D line)
Compute intersection of a line with this plane. Uses algorithm 1 given in: http://local.wasp.uwa.edu.au/~pbourke/geometry/planeline/.- Parameters:
line- the line which intersects the plane- Returns:
- the intersection point
-
point
public Point3D point(double u, double v)
-
boundingBox
public Box3D boundingBox()
- Specified by:
boundingBoxin interfaceShape3D
-
distance
public double distance(Point3D point)
Description copied from interface:Shape3DGets the distance of the shape to the given point, or the distance of point to the frontier of the shape in the case of a plain shape.
-
isBounded
public boolean isBounded()
Description copied from interface:Shape3DReturns true if the shape is bounded, that is if we can draw a finite rectangle enclosing the shape. For example, a straight line or a parabola are not bounded.
-
transform
public Shape3D transform(AffineTransform3D trans)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG