Package org.locationtech.jts.math
Class Plane3D
java.lang.Object
org.locationtech.jts.math.Plane3D
Models a plane in 3-dimensional Cartesian space.
- Author:
- mdavis
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Computes the axis plane that this plane lies closest to.double
Computes the oriented distance from a point to the plane.
-
Field Details
-
XY_PLANE
public static final int XY_PLANEEnums for the 3 coordinate planes- See Also:
-
YZ_PLANE
public static final int YZ_PLANE- See Also:
-
XZ_PLANE
public static final int XZ_PLANE- See Also:
-
-
Constructor Details
-
Plane3D
-
-
Method Details
-
orientedDistance
Computes the oriented distance from a point to the plane. The distance is:- positive if the point lies above the plane (relative to the plane normal)
- zero if the point is on the plane
- negative if the point lies below the plane (relative to the plane normal)
- Parameters:
p
- the point to compute the distance for- Returns:
- the oriented distance to the plane
-
closestAxisPlane
public int closestAxisPlane()Computes the axis plane that this plane lies closest to.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.
- Returns:
- the index of the closest axis plane.
-