public class ParametricPlane
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Point |
base |
protected Vector |
directionX |
protected Vector |
directionY |
protected Vector |
normal |
| Constructor and Description |
|---|
ParametricPlane(DXFExtrusion e) |
ParametricPlane(Point basePoint,
Point b,
Point c) |
ParametricPlane(Point basePoint,
Point b,
Vector normal)
Generates a plane with the base point and uses the vector from base point
to b as x direction.
|
ParametricPlane(Point basePoint,
Vector directionX,
Vector directionY) |
ParametricPlane(Point basePoint,
Vector directionX,
Vector directionY,
Vector normal) |
| Modifier and Type | Method and Description |
|---|---|
Point |
getBasePoint() |
Vector |
getDirectionX() |
Vector |
getDirectionY() |
Vector |
getNormal() |
double[] |
getParameter(Point p)
Calculates the plane parameters of the given point relative to the base
point of the plane
|
Point |
getPoint(double x,
double y)
Calculate the point in world coordinates for the given parameters
|
Point |
getPoint(Point point) |
boolean |
isOnPlane(Point p)
Determines if the given point lies on the plane.
|
void |
setBasePoint(Point base) |
void |
setDirectionX(Vector directionX) |
void |
setDirectionY(Vector directionY) |
protected Point base
protected Vector directionX
protected Vector directionY
protected Vector normal
public ParametricPlane(Point basePoint, Vector directionX, Vector directionY, Vector normal)
basePoint - The base point of this planedirectionX - the x direction of this planedirectionY - the y direction of this planenormal - the normal direction of this planepublic ParametricPlane(Point basePoint, Vector directionX, Vector directionY)
basePoint - The base point of this planedirectionX - the x direction of this planedirectionY - the y direction of this planepublic ParametricPlane(Point basePoint, Point b, Vector normal)
basePoint - b - normal - public ParametricPlane(DXFExtrusion e)
public Point getPoint(double x, double y)
x - y - public double[] getParameter(Point p)
p - public boolean isOnPlane(Point p)
p - the point to determinepublic Point getBasePoint()
public void setBasePoint(Point base)
public Vector getDirectionX()
public void setDirectionX(Vector directionX)
public Vector getDirectionY()
public void setDirectionY(Vector directionY)
public Vector getNormal()