Module org.apache.lucene.spatial3d
Package org.apache.lucene.spatial3d.geom
Class GeoStandardPath.CircleSegmentEndpoint
java.lang.Object
org.apache.lucene.spatial3d.geom.BasePlanetObject
org.apache.lucene.spatial3d.geom.GeoBaseBounds
org.apache.lucene.spatial3d.geom.GeoStandardPath.BaseSegmentEndpoint
org.apache.lucene.spatial3d.geom.GeoStandardPath.CircleSegmentEndpoint
- All Implemented Interfaces:
Bounded,GeoBounds,GeoStandardPath.PathComponent,GeoStandardPath.SegmentEndpoint,Membership,PlanetObject,SerializableObject
- Direct Known Subclasses:
GeoStandardPath.CutoffSingleCircleSegmentEndpoint
- Enclosing class:
GeoStandardPath
private static class GeoStandardPath.CircleSegmentEndpoint
extends GeoStandardPath.BaseSegmentEndpoint
Endpoint that's a simple circle.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SidedPlaneA plane describing the circleprotected static final GeoPoint[]No notable points from the circle itselfFields inherited from class org.apache.lucene.spatial3d.geom.GeoStandardPath.BaseSegmentEndpoint
NO_MEMBERSHIP, point, previousFields inherited from class org.apache.lucene.spatial3d.geom.BasePlanetObject
planetModel -
Constructor Summary
ConstructorsModifierConstructorDescriptionCircleSegmentEndpoint(PlanetModel planetModel, GeoStandardPath.PathComponent previous, GeoPoint point, GeoPoint upperPoint, GeoPoint lowerPoint) CircleSegmentEndpoint(PlanetModel planetModel, GeoStandardPath.PathComponent previous, GeoPoint point, Plane normalPlane, GeoPoint upperPoint, GeoPoint lowerPoint) Constructor for case (1).protectedCircleSegmentEndpoint(PlanetModel planetModel, GeoStandardPath.PathComponent previous, GeoPoint point, SidedPlane circlePlane) Constructor for case (3). -
Method Summary
Modifier and TypeMethodDescriptionvoidCompute bounds for the shape.booleanintersects(GeoShape geoShape) Determine if this endpoint intersects a GeoShape.booleanintersects(Plane p, XYZBounds planeBounds, GeoPoint[] notablePoints, Membership[] bounds) Determine if this endpoint intersects a specified plane.booleanisWithin(double x, double y, double z) Check if point is within this endpoint.booleanCheck if point is within this endpoint.toString()Methods inherited from class org.apache.lucene.spatial3d.geom.GeoStandardPath.BaseSegmentEndpoint
distance, equals, fullPathDistance, getStartingDistance, hashCode, isWithinSection, isWithinSection, nearestDistance, nearestPathDistance, outsideDistance, pathCenterDistance, pathDeltaDistance, pathDistanceMethods inherited from class org.apache.lucene.spatial3d.geom.BasePlanetObject
getPlanetModel, writeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.spatial3d.geom.PlanetObject
getPlanetModelMethods inherited from interface org.apache.lucene.spatial3d.geom.SerializableObject
write
-
Field Details
-
circlePlane
A plane describing the circle -
circlePoints
No notable points from the circle itself
-
-
Constructor Details
-
CircleSegmentEndpoint
public CircleSegmentEndpoint(PlanetModel planetModel, GeoStandardPath.PathComponent previous, GeoPoint point, GeoPoint upperPoint, GeoPoint lowerPoint) -
CircleSegmentEndpoint
public CircleSegmentEndpoint(PlanetModel planetModel, GeoStandardPath.PathComponent previous, GeoPoint point, Plane normalPlane, GeoPoint upperPoint, GeoPoint lowerPoint) Constructor for case (1). Generate a simple circle cutoff plane.- Parameters:
planetModel- is the planet model.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.
-
CircleSegmentEndpoint
protected CircleSegmentEndpoint(PlanetModel planetModel, GeoStandardPath.PathComponent previous, GeoPoint point, SidedPlane circlePlane) Constructor for case (3). Called by superclass only.- Parameters:
point- is the center point.circlePlane- is the circle plane.
-
-
Method Details
-
isWithin
Description copied from interface:GeoStandardPath.PathComponentCheck if point is within this endpoint.- Specified by:
isWithinin interfaceGeoStandardPath.PathComponent- Specified by:
isWithinin interfaceMembership- Overrides:
isWithinin classGeoStandardPath.BaseSegmentEndpoint- Parameters:
point- is the point.- Returns:
- true of within.
-
isWithin
public boolean isWithin(double x, double y, double z) Description copied from interface:GeoStandardPath.PathComponentCheck if point is within this endpoint.- Specified by:
isWithinin interfaceGeoStandardPath.PathComponent- Specified by:
isWithinin interfaceMembership- Overrides:
isWithinin classGeoStandardPath.BaseSegmentEndpoint- Parameters:
x- is the point x.y- is the point y.z- is the point z.- Returns:
- true of within.
-
intersects
public boolean intersects(Plane p, XYZBounds planeBounds, GeoPoint[] notablePoints, Membership[] bounds) Description copied from interface:GeoStandardPath.PathComponentDetermine if this endpoint intersects a specified plane.- Specified by:
intersectsin interfaceGeoStandardPath.PathComponent- Overrides:
intersectsin classGeoStandardPath.BaseSegmentEndpoint- Parameters:
p- is the plane.planeBounds- are the XYZBounds of the plane we're looking for an intersection with.notablePoints- are the points associated with the plane.bounds- are any bounds which the intersection must lie within.- Returns:
- true if there is a matching intersection.
-
intersects
Description copied from interface:GeoStandardPath.PathComponentDetermine if this endpoint intersects a GeoShape.- Specified by:
intersectsin interfaceGeoStandardPath.PathComponent- Overrides:
intersectsin classGeoStandardPath.BaseSegmentEndpoint- Parameters:
geoShape- is the GeoShape.- Returns:
- true if there is shape intersect this endpoint.
-
getBounds
Description copied from interface:BoundedCompute bounds for the shape.- Specified by:
getBoundsin interfaceBounded- Specified by:
getBoundsin interfaceGeoStandardPath.PathComponent- Overrides:
getBoundsin classGeoStandardPath.BaseSegmentEndpoint- Parameters:
bounds- is the input bounds object. The input object will be modified.
-
toString
- Overrides:
toStringin classGeoStandardPath.BaseSegmentEndpoint
-