Class Point2D

  • java.lang.Object
    • com.here.sdk.core.Point2D

  • public final class Point2D
    extends java.lang.Object

    Represents a point in 2D space. When this point is used to indicate coordinates on a view, then (0,0) will mark the top-left corner of the view.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      double x
      Position along the X axis.
      double y
      Position along the Y axis.
    • Constructor Summary

      Constructors 
      Constructor Description
      Point2D()
      Creates a new instance.
      Point2D​(double x, double y)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • x

        public double x

        Position along the X axis. The default value is 0.

      • y

        public double y

        Position along the Y axis. The default value is 0.

    • Constructor Detail

      • Point2D

        public Point2D()

        Creates a new instance.

      • Point2D

        public Point2D​(double x,
                       double y)

        Creates a new instance.

        Parameters:
        x -

        Position along the X axis. The default value is 0.

        y -

        Position along the Y axis. The default value is 0.

    • Method Detail

      • equals

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

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