public class Plane3D extends Object implements Shape3D
Shape3D.EmptySet3D
Modifier and Type | Field and Description |
---|---|
protected double |
dx1 |
protected double |
dx2 |
protected double |
dy1 |
protected double |
dy2 |
protected double |
dz1 |
protected double |
dz2 |
protected double |
x0 |
protected double |
y0 |
protected double |
z0 |
Constructor and Description |
---|
Plane3D() |
Plane3D(Point3D point,
Vector3D vector1,
Vector3D vector2) |
Modifier and Type | Method and Description |
---|---|
Shape3D |
clip(Box3D box) |
boolean |
contains(Point3D point) |
static Plane3D |
createXYPlane() |
static Plane3D |
createXZPlane() |
static Plane3D |
createYZPlane() |
boolean |
equals(Object obj) |
Box3D |
getBoundingBox() |
double |
getDistance(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.
|
Point3D |
getLineIntersection(StraightLine3D line)
Compute intersection of a line with this plane.
|
Vector3D |
getNormalVector()
Points towars the outside part of the plane.
|
Point3D |
getOrigin() |
Point3D |
getPoint(double u,
double v) |
Point2D |
getPointPosition(Point3D point) |
Vector3D |
getVector1() |
Vector3D |
getVector2() |
boolean |
isBounded()
Returns true if the shape is bounded, that is if we can draw a finite
rectangle enclosing the shape.
|
boolean |
isEmpty() |
Point3D |
projectPoint(Point3D point) |
Vector3D |
projectVector(Vector3D vect) |
Shape3D |
transform(AffineTransform3D trans) |
protected double x0
protected double y0
protected double z0
protected double dx1
protected double dy1
protected double dz1
protected double dx2
protected double dy2
protected double dz2
public static final Plane3D createXYPlane()
public static final Plane3D createXZPlane()
public static final Plane3D createYZPlane()
public Point3D getOrigin()
public Vector3D getVector1()
public Vector3D getVector2()
public Vector3D getNormalVector()
public Point3D getLineIntersection(StraightLine3D line)
line
- the line which intersects the planepublic Point3D getPoint(double u, double v)
public Box3D getBoundingBox()
getBoundingBox
in interface Shape3D
public double getDistance(Point3D point)
Shape3D
getDistance
in interface Shape3D
public boolean isBounded()
Shape3D
public Shape3D transform(AffineTransform3D trans)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.