public class Plane3D
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Coordinate |
basePt |
private Vector3D |
normal |
static int |
XY_PLANE
Enums for the 3 coordinate planes
|
static int |
XZ_PLANE |
static int |
YZ_PLANE |
Constructor and Description |
---|
Plane3D(Vector3D normal,
Coordinate basePt) |
Modifier and Type | Method and Description |
---|---|
int |
closestAxisPlane()
Computes the axis plane that this plane lies closest to.
|
double |
orientedDistance(Coordinate p)
Computes the oriented distance from a point to the plane.
|
public static final int XY_PLANE
public static final int YZ_PLANE
public static final int XZ_PLANE
private Vector3D normal
private Coordinate basePt
public Plane3D(Vector3D normal, Coordinate basePt)
public double orientedDistance(Coordinate p)
p
- the point to compute the distance forpublic int closestAxisPlane()
Geometries lying in this plane undergo least distortion (and have maximum area) when projected to the closest axis plane. This provides optimal conditioning for computing a Point-in-Polygon test.