Class S2Shape.ReferencePoint

  • All Implemented Interfaces:
    S2Region, java.io.Serializable, java.lang.Comparable<S2Point>
    Enclosing interface:
    S2Shape

    public abstract static class S2Shape.ReferencePoint
    extends S2Point
    A point with a known containment relationship.
    See Also:
    Serialized Form
    • Constructor Detail

      • ReferencePoint

        private ReferencePoint​(S2Point p)
    • 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'.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class S2Point