Class Circle

  • All Implemented Interfaces:
    android.os.Parcelable, es.situm.sdk.directions.internal.calc.RouteCollider, MapperInterface

    public class Circle
    extends java.lang.Object
    implements android.os.Parcelable, es.situm.sdk.directions.internal.calc.RouteCollider, MapperInterface
    A circle with center and radius
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<Circle> CREATOR
    • Constructor Detail

      • Circle

        public Circle​(Point center,
                      float radius)
    • Method Detail

      • getCenter

        public Point getCenter()
        The center of the circle
      • getRadius

        public float getRadius()
        The radius of the circle (in meters)
      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable
      • collidesWith

        @NonNull
        public Collision collidesWith​(@NonNull
                                      es.situm.sdk.model.directions.graph.Edge<? extends Point> section)
        Specified by:
        collidesWith in interface es.situm.sdk.directions.internal.calc.RouteCollider
      • contains

        public boolean contains​(@NonNull
                                Point p)
        Specified by:
        contains in interface es.situm.sdk.directions.internal.calc.RouteCollider
      • toMap

        public java.util.Map<java.lang.String,​java.lang.Object> toMap()
        Description copied from interface: MapperInterface
        Method to transform object into Map
        Specified by:
        toMap in interface MapperInterface
        Returns:
        Map with the information of the object mapped