Class Point2D

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

public final class Point2D extends 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
    Position along the X axis.
    double
    Position along the Y axis.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    boolean
     
    int
     

    Methods inherited from class java.lang.Object

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

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

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