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:
  • Field Details

  • Constructor Details

    • ReferencePoint

      private ReferencePoint(S2Point p)
  • Method Details

    • 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'.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class S2Point