Modifier and Type | Field and Description |
---|---|
GeoPoint |
end
End point of the segment
|
SidedPlane |
endCutoffPlane
Plane going through the center and end point, marking the end edge of the segment
|
GeoPoint[] |
endCutoffPlanePoints
Notable points for the end cutoff plane
|
Map<DistanceStyle,Double> |
fullDistanceCache
Place to keep any complete segment distances we've calculated so far
|
GeoPoint |
LLHC
Lower left hand corner of segment
|
SidedPlane |
lowerConnectingPlane
Cutoff plane parallel to connecting plane representing the other side of the path segment
|
GeoPoint[] |
lowerConnectingPlanePoints
Notable points for the lower connecting plane
|
GeoPoint |
LRHC
Lower right hand corner of segment
|
Plane |
normalizedConnectingPlane
Normalized plane connecting the two points and going through world center
|
GeoPoint |
start
Starting point of the segment
|
SidedPlane |
startCutoffPlane
Plane going through the center and start point, marking the start edge of the segment
|
GeoPoint[] |
startCutoffPlanePoints
Notable points for the start cutoff plane
|
GeoPoint |
ULHC
Upper left hand corner of segment
|
SidedPlane |
upperConnectingPlane
Cutoff plane parallel to connecting plane representing one side of the path segment
|
GeoPoint[] |
upperConnectingPlanePoints
Notable points for the upper connecting plane
|
GeoPoint |
URHC
Upper right hand corner of segment
|
Constructor and Description |
---|
PathSegment(PlanetModel planetModel,
GeoPoint start,
GeoPoint end,
Plane normalizedConnectingPlane,
double planeBoundingOffset)
Construct a path segment.
|
Modifier and Type | Method and Description |
---|---|
double |
fullPathDistance(DistanceStyle distanceStyle)
Compute the full distance along this path segment.
|
void |
getBounds(PlanetModel planetModel,
Bounds bounds)
Get the bounds for a segment endpoint.
|
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 segment.
|
boolean |
isWithin(Vector point)
Check if point is within this segment.
|
double |
outsideDistance(PlanetModel planetModel,
DistanceStyle distanceStyle,
double x,
double y,
double z)
Compute external distance.
|
double |
pathDistance(PlanetModel planetModel,
DistanceStyle distanceStyle,
double x,
double y,
double z)
Compute interior path distance.
|
public final GeoPoint start
public final GeoPoint end
public final Map<DistanceStyle,Double> fullDistanceCache
public final Plane normalizedConnectingPlane
public final SidedPlane upperConnectingPlane
public final SidedPlane lowerConnectingPlane
public final SidedPlane startCutoffPlane
public final SidedPlane endCutoffPlane
public final GeoPoint URHC
public final GeoPoint LRHC
public final GeoPoint ULHC
public final GeoPoint LLHC
public final GeoPoint[] upperConnectingPlanePoints
public final GeoPoint[] lowerConnectingPlanePoints
public final GeoPoint[] startCutoffPlanePoints
public final GeoPoint[] endCutoffPlanePoints
public PathSegment(PlanetModel planetModel, GeoPoint start, GeoPoint end, Plane normalizedConnectingPlane, double planeBoundingOffset)
planetModel
- is the planet model.start
- is the starting point.end
- is the ending point.normalizedConnectingPlane
- is the connecting plane.planeBoundingOffset
- is the linear offset from the connecting plane to either side.public double fullPathDistance(DistanceStyle distanceStyle)
distanceStyle
- is the distance style.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(PlanetModel planetModel, DistanceStyle distanceStyle, double x, double y, double z)
planetModel
- is the planet model.distanceStyle
- is the distance style.x
- is the point x.y
- is the point y.z
- is the point z.public double outsideDistance(PlanetModel planetModel, DistanceStyle distanceStyle, double x, double y, double z)
planetModel
- is the planet model.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.