Class Size2D

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

  • public final class Size2D
    extends java.lang.Object

    Represents the size of a 2D structure.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      double height
      The height represents the size along the Y axis.
      double width
      The width represents the size along the X axis.
    • Constructor Summary

      Constructors 
      Constructor Description
      Size2D()
      Creates a new instance.
      Size2D​(double width, double height)
      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

      • width

        public double width

        The width represents the size along the X axis. Default is 0.0.

      • height

        public double height

        The height represents the size along the Y axis. Default is 0.0.

    • Constructor Detail

      • Size2D

        public Size2D()

        Creates a new instance.

      • Size2D

        public Size2D​(double width,
                      double height)

        Creates a new instance.

        Parameters:
        width -

        The width represents the size along the X axis. Default is 0.0.

        height -

        The height represents the size along the Y axis. Default is 0.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