java.lang.Object
org.apache.lucene.spatial3d.geom.BasePlanetObject
org.apache.lucene.spatial3d.geom.BaseXYZSolid
- All Implemented Interfaces:
GeoArea,Membership,PlanetObject,SerializableObject,XYZSolid
- Direct Known Subclasses:
dXdYdZSolid,dXdYZSolid,dXYdZSolid,dXYZSolid,StandardXYZSolid,XdYdZSolid,XdYZSolid,XYdZSolid
Base class of a family of 3D rectangles, bounded on six sides by X,Y,Z limits
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intAll edgepoints inside shapeprotected static final GeoPoint[]Empty point vectorprotected static final intNo edgepoints at all (means a shape that is the whole world)protected static final intNo edgepoints inside shapeprotected static final intSome edgepoints inside shapeprotected static final VectorUnit vector in xprotected static final PlaneVertical plane normal to x unit vector passing through originprotected static final VectorUnit vector in yprotected static final PlaneVertical plane normal to y unit vector passing through originprotected static final VectorUnit vector in zFields inherited from class org.apache.lucene.spatial3d.geom.BasePlanetObject
planetModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected abstract GeoPoint[]Get the edge points for this shape.protected static GeoPoint[]glueTogether(GeoPoint[]... pointArrays) Construct a single array from a number of individual arrays.inthashCode()protected intisAreaInsideShape(GeoShape path) Determine the relationship between a shape and this area's edgepoints.protected intisShapeInsideArea(GeoShape path) Determine the relationship between this area and the provided shape's edgepoints.abstract booleanisWithin(double x, double y, double z) Check if a point is within this shape.booleanCheck if a point is within this shape.Methods inherited from class org.apache.lucene.spatial3d.geom.BasePlanetObject
getPlanetModel, writeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.spatial3d.geom.GeoArea
getRelationshipMethods inherited from interface org.apache.lucene.spatial3d.geom.PlanetObject
getPlanetModelMethods inherited from interface org.apache.lucene.spatial3d.geom.SerializableObject
write
-
Field Details
-
xUnitVector
Unit vector in x -
yUnitVector
Unit vector in y -
zUnitVector
Unit vector in z -
xVerticalPlane
Vertical plane normal to x unit vector passing through origin -
yVerticalPlane
Vertical plane normal to y unit vector passing through origin -
EMPTY_POINTS
Empty point vector -
ALL_INSIDE
protected static final int ALL_INSIDEAll edgepoints inside shape- See Also:
-
SOME_INSIDE
protected static final int SOME_INSIDESome edgepoints inside shape- See Also:
-
NONE_INSIDE
protected static final int NONE_INSIDENo edgepoints inside shape- See Also:
-
NO_EDGEPOINTS
protected static final int NO_EDGEPOINTSNo edgepoints at all (means a shape that is the whole world)- See Also:
-
-
Constructor Details
-
BaseXYZSolid
Base solid constructor.- Parameters:
planetModel- is the planet model.
-
-
Method Details
-
glueTogether
Construct a single array from a number of individual arrays.- Parameters:
pointArrays- is the array of point arrays.- Returns:
- the single unified array.
-
isWithin
Description copied from interface:MembershipCheck if a point is within this shape.- Specified by:
isWithinin interfaceMembership- Parameters:
point- is the point to check.- Returns:
- true if the point is within this shape
-
isWithin
public abstract boolean isWithin(double x, double y, double z) Description copied from interface:MembershipCheck if a point is within this shape.- Specified by:
isWithinin interfaceMembership- Parameters:
x- is x coordinate of point to check.y- is y coordinate of point to check.z- is z coordinate of point to check.- Returns:
- true if the point is within this shape
-
isShapeInsideArea
Determine the relationship between this area and the provided shape's edgepoints.- Parameters:
path- is the shape.- Returns:
- the relationship.
-
isAreaInsideShape
Determine the relationship between a shape and this area's edgepoints.- Parameters:
path- is the shape.- Returns:
- the relationship.
-
getEdgePoints
Get the edge points for this shape.- Returns:
- the edge points.
-
equals
- Overrides:
equalsin classBasePlanetObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classBasePlanetObject
-