public abstract class BaseXYZSolid extends BasePlanetObject implements XYZSolid
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ALL_INSIDE
All edgepoints inside shape
|
protected static GeoPoint[] |
EMPTY_POINTS
Empty point vector
|
protected static int |
NO_EDGEPOINTS
No edgepoints at all (means a shape that is the whole world)
|
protected static int |
NONE_INSIDE
No edgepoints inside shape
|
protected static int |
SOME_INSIDE
Some edgepoints inside shape
|
protected static Vector |
xUnitVector
Unit vector in x
|
protected static Plane |
xVerticalPlane
Vertical plane normal to x unit vector passing through origin
|
protected static Vector |
yUnitVector
Unit vector in y
|
protected static Plane |
yVerticalPlane
Vertical plane normal to y unit vector passing through origin
|
protected static Vector |
zUnitVector
Unit vector in z
|
planetModel| Constructor and Description |
|---|
BaseXYZSolid(PlanetModel planetModel)
Base solid constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
protected abstract GeoPoint[] |
getEdgePoints()
Get the edge points for this shape.
|
protected static GeoPoint[] |
glueTogether(GeoPoint[]... pointArrays)
Construct a single array from a number of individual arrays.
|
int |
hashCode() |
protected int |
isAreaInsideShape(GeoShape path)
Determine the relationship between a shape and this area's
edgepoints.
|
protected int |
isShapeInsideArea(GeoShape path)
Determine the relationship between this area and the provided
shape's edgepoints.
|
abstract boolean |
isWithin(double x,
double y,
double z)
Check if a point is within this shape.
|
boolean |
isWithin(Vector point)
Check if a point is within this shape.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetRelationshipprotected static final Vector xUnitVector
protected static final Vector yUnitVector
protected static final Vector zUnitVector
protected static final Plane xVerticalPlane
protected static final Plane yVerticalPlane
protected static final GeoPoint[] EMPTY_POINTS
protected static final int ALL_INSIDE
protected static final int SOME_INSIDE
protected static final int NONE_INSIDE
protected static final int NO_EDGEPOINTS
public BaseXYZSolid(PlanetModel planetModel)
planetModel - is the planet model.protected static GeoPoint[] glueTogether(GeoPoint[]... pointArrays)
pointArrays - is the array of point arrays.public boolean isWithin(Vector point)
MembershipisWithin in interface Membershippoint - is the point to check.public abstract boolean isWithin(double x,
double y,
double z)
MembershipisWithin in interface Membershipx - is x coordinate of point to check.y - is y coordinate of point to check.z - is z coordinate of point to check.protected int isShapeInsideArea(GeoShape path)
path - is the shape.protected int isAreaInsideShape(GeoShape path)
path - is the shape.protected abstract GeoPoint[] getEdgePoints()
public boolean equals(Object o)
equals in class BasePlanetObjectpublic int hashCode()
hashCode in class BasePlanetObjectCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.