Class Point3D

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

  • public final class Point3D
    extends java.lang.Object

    Represents a point in 3D space.

    • Field Summary

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

      Constructors 
      Constructor Description
      Point3D()
      Constructs Point3D instance at coordinate system's origin.
      Point3D​(double x, double y, double z)
      Constructs Point3D instance from the provided x,y and z values.
    • 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.

      • z

        public double z

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

    • Constructor Detail

      • Point3D

        public Point3D()

        Constructs Point3D instance at coordinate system's origin.

      • Point3D

        public Point3D​(double x,
                       double y,
                       double z)

        Constructs Point3D instance from the provided x,y and z values.

        Parameters:
        x -

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

        y -

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

        z -

        Position along the Z 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