public static class GeoPath.SegmentEndpoint extends Object
Modifier and Type | Field and Description |
---|---|
SidedPlane |
circlePlane
A plane describing the circle
|
static GeoPoint[] |
circlePoints
No notable points from the circle itself
|
Membership[] |
cutoffPlanes
Pertinent cutoff planes from adjoining segments
|
static Membership[] |
NO_MEMBERSHIP
Null membership
|
GeoPoint[] |
notablePoints
Notable points for this segment endpoint
|
GeoPoint |
point
The center point of the endpoint
|
Constructor and Description |
---|
GeoPath.SegmentEndpoint(GeoPoint point)
Base case.
|
GeoPath.SegmentEndpoint(GeoPoint point,
Plane normalPlane,
GeoPoint upperPoint,
GeoPoint lowerPoint)
Constructor for case (1).
|
GeoPath.SegmentEndpoint(GeoPoint point,
SidedPlane cutoffPlane,
GeoPoint topEdgePoint,
GeoPoint bottomEdgePoint)
Constructor for case (2).
|
GeoPath.SegmentEndpoint(GeoPoint point,
SidedPlane cutoffPlane1,
SidedPlane cutoffPlane2,
GeoPoint topEdgePoint,
GeoPoint bottomEdgePoint)
Constructor for case (2.5).
|
GeoPath.SegmentEndpoint(GeoPoint point,
SidedPlane prevCutoffPlane,
SidedPlane nextCutoffPlane,
GeoPoint notCand2Point,
GeoPoint notCand1Point,
GeoPoint notCand3Point,
GeoPoint notCand4Point,
SidedPlane candidate1,
SidedPlane candidate2,
SidedPlane candidate3,
SidedPlane candidate4)
Constructor for case (3).
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
void |
getBounds(PlanetModel planetModel,
Bounds bounds)
Get the bounds for a segment endpoint.
|
int |
hashCode() |
boolean |
intersects(PlanetModel planetModel,
Plane p,
GeoPoint[] notablePoints,
Membership[] bounds)
Determine if this endpoint intersects a specified plane.
|
boolean |
isWithin(double x,
double y,
double z)
Check if point is within this endpoint.
|
boolean |
isWithin(Vector point)
Check if point is within this endpoint.
|
double |
outsideDistance(DistanceStyle distanceStyle,
double x,
double y,
double z)
Compute external distance.
|
double |
pathDistance(DistanceStyle distanceStyle,
double x,
double y,
double z)
Compute interior path distance.
|
String |
toString() |
public final GeoPoint point
public final SidedPlane circlePlane
public final Membership[] cutoffPlanes
public final GeoPoint[] notablePoints
public static final GeoPoint[] circlePoints
public static final Membership[] NO_MEMBERSHIP
public GeoPath.SegmentEndpoint(GeoPoint point)
public GeoPath.SegmentEndpoint(GeoPoint point, Plane normalPlane, GeoPoint upperPoint, GeoPoint lowerPoint)
point
- is the center point.upperPoint
- is a point that must be on the circle plane.lowerPoint
- is another point that must be on the circle plane.public GeoPath.SegmentEndpoint(GeoPoint point, SidedPlane cutoffPlane, GeoPoint topEdgePoint, GeoPoint bottomEdgePoint)
point
- is the center point.cutoffPlane
- is the plane from the adjoining path segment marking the boundary between this endpoint and that segment.topEdgePoint
- is a point on the cutoffPlane that should be also on the circle plane.bottomEdgePoint
- is another point on the cutoffPlane that should be also on the circle plane.public GeoPath.SegmentEndpoint(GeoPoint point, SidedPlane cutoffPlane1, SidedPlane cutoffPlane2, GeoPoint topEdgePoint, GeoPoint bottomEdgePoint)
point
- is the center.cutoffPlane1
- is one adjoining path segment cutoff plane.cutoffPlane2
- is another adjoining path segment cutoff plane.topEdgePoint
- is a point on the cutoffPlane that should be also on the circle plane.bottomEdgePoint
- is another point on the cutoffPlane that should be also on the circle plane.public GeoPath.SegmentEndpoint(GeoPoint point, SidedPlane prevCutoffPlane, SidedPlane nextCutoffPlane, GeoPoint notCand2Point, GeoPoint notCand1Point, GeoPoint notCand3Point, GeoPoint notCand4Point, SidedPlane candidate1, SidedPlane candidate2, SidedPlane candidate3, SidedPlane candidate4)
point
- is the center.prevCutoffPlane
- is the previous adjoining segment cutoff plane.nextCutoffPlane
- is the next path segment cutoff plane.notCand2Point
- is a point NOT on candidate2.notCand1Point
- is a point NOT on candidate1.notCand3Point
- is a point NOT on candidate3.notCand4Point
- is a point NOT on candidate4.candidate1
- one of four candidate circle planes.candidate2
- one of four candidate circle planes.candidate3
- one of four candidate circle planes.candidate4
- one of four candidate circle planes.public boolean isWithin(Vector point)
point
- is the point.public boolean isWithin(double x, double y, double z)
x
- is the point x.y
- is the point y.z
- is the point z.public double pathDistance(DistanceStyle distanceStyle, double x, double y, double z)
distanceStyle
- is the distance style.x
- is the point x.y
- is the point y.z
- is the point z.public double outsideDistance(DistanceStyle distanceStyle, double x, double y, double z)
distanceStyle
- is the distance style.x
- is the point x.y
- is the point y.z
- is the point z.public boolean intersects(PlanetModel planetModel, Plane p, GeoPoint[] notablePoints, Membership[] bounds)
planetModel
- is the planet model.p
- is the plane.notablePoints
- are the points associated with the plane.bounds
- are any bounds which the intersection must lie within.public void getBounds(PlanetModel planetModel, Bounds bounds)
planetModel
- is the planet model.bounds
- are the bounds to be modified.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.