Class Rectangle2D

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

public final class Rectangle2D extends Object

Represents a 2D rectangle defined by the origin and size.

  • Field Details

    • origin

      @NonNull public Point2D origin

      The origin specifies the top-left corner of the rectangle. When this point is used to indicate the coordinates on a view, then (0,0) will mark the top-left corner of the view. The size determines the width and height of the rectangle. The width expands towards the right of the view. The height expands towards the bottom of the view.

    • size

      @NonNull public Size2D size

      The size specifies the width and height of the rectangle.

  • Constructor Details

    • Rectangle2D

      public Rectangle2D(@NonNull Point2D origin, @NonNull Size2D size)

      Creates a new instance.

      Parameters:
      origin -

      The origin specifies the top-left corner of the rectangle. When this point is used to indicate the coordinates on a view, then (0,0) will mark the top-left corner of the view. The size determines the width and height of the rectangle. The width expands towards the right of the view. The height expands towards the bottom of the view.

      size -

      The size specifies the width and height of the rectangle.

  • Method Details