public class SidedPlane extends Plane implements Membership
Modifier and Type | Field and Description |
---|---|
double |
sigNum
The sign value for evaluation of a point on the correct side of the plane
|
D, NO_BOUNDS, NO_POINTS, normalXPlane, normalYPlane, normalZPlane
MINIMUM_ANGULAR_RESOLUTION, MINIMUM_RESOLUTION, MINIMUM_RESOLUTION_CUBED, MINIMUM_RESOLUTION_SQUARED, x, y, z
Constructor and Description |
---|
SidedPlane(double pX,
double pY,
double pZ,
Vector v,
double D)
Construct a sided plane with a normal vector and offset.
|
SidedPlane(double pX,
double pY,
double pZ,
Vector A,
Vector B)
Construct a sided plane from a pair of vectors describing points, and including
origin, plus a point p which describes the side.
|
SidedPlane(SidedPlane sidedPlane)
Construct a SidedPlane identical to an existing one, but reversed.
|
SidedPlane(Vector p,
boolean onSide,
Vector A,
Vector B)
Construct a sided plane from a pair of vectors describing points, and including
origin, plus a point p which describes the side.
|
SidedPlane(Vector p,
double x,
double y)
Construct a sided vertical plane from a point and specified x and y coordinates.
|
SidedPlane(Vector p,
double vX,
double vY,
double vZ,
double D)
Construct a sided plane with a normal vector and offset.
|
SidedPlane(Vector p,
PlanetModel planetModel,
double sinLat)
Construct a sided plane from a point and a Z coordinate.
|
SidedPlane(Vector A,
Vector B)
Construct a sided plane from a pair of vectors describing points, and including
origin.
|
SidedPlane(Vector p,
Vector v,
double D)
Construct a sided plane with a normal vector and offset.
|
SidedPlane(Vector p,
Vector A,
double BX,
double BY,
double BZ)
Construct a sided plane from a pair of vectors describing points, and including
origin, plus a point p which describes the side.
|
SidedPlane(Vector p,
Vector A,
Vector B)
Construct a sided plane from a pair of vectors describing points, and including
origin, plus a point p which describes the side.
|
Modifier and Type | Method and Description |
---|---|
static SidedPlane |
constructNormalizedPerpendicularSidedPlane(Vector insidePoint,
Vector normalVector,
Vector point1,
Vector point2)
Construct a sided plane from two points and a third normal vector.
|
static SidedPlane |
constructNormalizedThreePointSidedPlane(Vector insidePoint,
Vector point1,
Vector point2,
Vector point3)
Construct a sided plane from three points.
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isWithin(double x,
double y,
double z)
Check if a point is within this shape.
|
boolean |
strictlyWithin(double x,
double y,
double z)
Check whether a point is strictly within a plane.
|
boolean |
strictlyWithin(Vector v)
Check whether a point is strictly within a plane.
|
String |
toString() |
arcDistance, arcDistance, arePointsCoplanar, constructNormalizedXPlane, constructNormalizedXPlane, constructNormalizedYPlane, constructNormalizedYPlane, constructNormalizedZPlane, constructNormalizedZPlane, crosses, evaluate, evaluate, evaluateIsZero, evaluateIsZero, findArcDistancePoints, findCrossings, findCrossings, findIntersectionBounds, findIntersections, findIntersections, getSampleIntersectionPoint, interpolate, intersects, isFunctionallyIdentical, isNumericallyIdentical, linearDistance, linearDistance, linearDistanceSquared, linearDistanceSquared, modify, normalDistance, normalDistance, normalDistanceSquared, normalDistanceSquared, normalize, recordBounds, recordBounds, recordBounds, recordBounds, reverseModify
crossProductEvaluateIsZero, dotProduct, dotProduct, isNumericallyIdentical, isNumericallyIdentical, isParallel, isParallel, isWithin, linearDistance, linearDistance, linearDistanceSquared, linearDistanceSquared, magnitude, magnitude, normalDistance, normalDistance, normalDistanceSquared, normalDistanceSquared, rotateXY, rotateXY, rotateXZ, rotateXZ, rotateZY, rotateZY, translate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isWithin
public final double sigNum
public SidedPlane(SidedPlane sidedPlane)
sidedPlane
- is the existing plane.public SidedPlane(double pX, double pY, double pZ, Vector A, Vector B)
pX
- point X to evaluatepY
- point Y to evaluatepZ
- point Z to evaluateA
- is the first in-plane pointB
- is the second in-plane pointpublic SidedPlane(Vector p, Vector A, Vector B)
p
- point to evaluateA
- is the first in-plane pointB
- is the second in-plane pointpublic SidedPlane(Vector A, Vector B)
A
- is the first in-plane pointB
- is the second in-plane pointpublic SidedPlane(Vector p, Vector A, double BX, double BY, double BZ)
p
- point to evaluateA
- is the first in-plane pointBX
- is the X value of the second in-plane pointBY
- is the Y value of the second in-plane pointBZ
- is the Z value of the second in-plane pointpublic SidedPlane(Vector p, boolean onSide, Vector A, Vector B)
p
- point to evaluateonSide
- is true if the point is on the correct side of the plane, false otherwise.A
- is the first in-plane pointB
- is the second in-plane pointpublic SidedPlane(Vector p, PlanetModel planetModel, double sinLat)
p
- point to evaluate.planetModel
- is the planet model.sinLat
- is the sin of the latitude of the plane.public SidedPlane(Vector p, double x, double y)
p
- point to evaluate.x
- is the specified x.y
- is the specified y.public SidedPlane(Vector p, double vX, double vY, double vZ, double D)
p
- point to evaluate.vX
- is the normal vector X.vY
- is the normal vector Y.vZ
- is the normal vector Z.D
- is the origin offset for the plan.public SidedPlane(Vector p, Vector v, double D)
p
- point to evaluate.v
- is the normal vector.D
- is the origin offset for the plan.public SidedPlane(double pX, double pY, double pZ, Vector v, double D)
pX
- X coord of point to evaluate.pY
- Y coord of point to evaluate.pZ
- Z coord of point to evaluate.v
- is the normal vector.D
- is the origin offset for the plan.public static SidedPlane constructNormalizedPerpendicularSidedPlane(Vector insidePoint, Vector normalVector, Vector point1, Vector point2)
public static SidedPlane constructNormalizedThreePointSidedPlane(Vector insidePoint, Vector point1, Vector point2, Vector point3)
public boolean isWithin(double x, double y, double z)
Membership
isWithin
in interface Membership
x
- is x coordinate of point to check.y
- is y coordinate of point to check.z
- is z coordinate of point to check.public boolean strictlyWithin(Vector v)
v
- is the point.public boolean strictlyWithin(double x, double y, double z)
x
- is the point x value.y
- is the point y value.z
- is the point z value.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.