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
public abstract static class S2Shape.ReferencePoint extends S2Point
A point with a known containment relationship.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.geometry.S2Point
S2Point.Builder, S2Point.Shape
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleancontained()Returns 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.ReferencePointcreate(S2Point p, boolean contained)Creates a referenced point at position 'p', with known containment 'contained'.booleanequals(Object o)-
Methods inherited from class com.google.common.geometry.S2Point
add, add, angle, compareTo, contains, contains, crossProd, crossProd, crossProdNorm, decode, div, div, dotProd, encode, equalsPoint, fabs, fabs, get, getCapBound, getDistance, getDistance2, getRectBound, getX, getY, getZ, hashCode, largestAbsComponent, lessThan, mayIntersect, minus, mul, mul, neg, neg, norm, norm2, normalize, normalize, ortho, rotate, scalarTripleProduct, sub, sub, toBuilder, toDegreesString, toString
-
-
-
-
Method Detail
-
contained
public abstract boolean contained()
Returns true if this point is contained by the reference shape.
-
create
public static S2Shape.ReferencePoint create(boolean contained)
Returns a referenced point at an arbitrary position, suitable for shapes that contain all points or no points.
-
create
public static S2Shape.ReferencePoint create(S2Point p, boolean contained)
Creates a referenced point at position 'p', with known containment 'contained'.
-
-