Package com.google.common.geometry
Class S2Shape.ReferencePoint
java.lang.Object
com.google.common.geometry.S2Point
com.google.common.geometry.S2Shape.ReferencePoint
- All Implemented Interfaces:
S2Region,Serializable,Comparable<S2Point>
- Enclosing interface:
S2Shape
A point with a known containment relationship.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.geometry.S2Point
S2Point.Builder, S2Point.Shape -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final S2Shape.ReferencePointprivate static final S2Shape.ReferencePoint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanReturns true if this point is contained by the reference shape.static S2Shape.ReferencePointcreate(boolean contained) Returns a referenced point at an arbitrary position, suitable for shapes that contain all points or no points.static S2Shape.ReferencePointCreates a referenced point at position 'p', with known containment 'contained'.booleanMethods inherited from class com.google.common.geometry.S2Point
add, add, aequal, angle, compareTo, contains, contains, crossProd, crossProd, crossProdNorm, decode, decode, div, div, dotProd, encode, encode, equalsPoint, fabs, fabs, get, getCapBound, getDistance, getDistance2, getRectBound, getX, getY, getZ, hashCode, largestAbsComponent, largestAbsComponent, lessThan, mayIntersect, minus, mul, mul, neg, neg, norm, norm2, normalize, normalize, ortho, rotate, scalarTripleProduct, sub, sub, toBuilder, toDegreesString, toString
-
Field Details
-
ORIGIN_INSIDE
-
ORIGIN_OUTSIDE
-
-
Constructor Details
-
ReferencePoint
-
-
Method Details
-
contained
public abstract boolean contained()Returns true if this point is contained by the reference shape. -
create
Returns a referenced point at an arbitrary position, suitable for shapes that contain all points or no points. -
create
Creates a referenced point at position 'p', with known containment 'contained'. -
equals
-