AnyLogic
Expand
Font size
All Superinterfaces:
Locatable2D
All Known Subinterfaces:
Area3D
All Known Implementing Classes:
ShapeRectangle, ShapeRoundedRectangle

public interface Area2D
extends Locatable2D
This interface represents some rectangular area.
Author:
AnyLogic North America, LLC https://anylogic.com

Method Summary

Modifier and TypeMethodDescription
doublegetHeight()
Returns the height of the area.
doublegetWidth()
Returns the width of the area.
doublegetX()
Returns the base x coordinate of the area.
doublegetY()
Returns the base y coordinate of the area.

Method Details

getX

double getX()
Returns the base x coordinate of the area.
Specified by:
getX in interface Locatable2D
Returns:
the base x coordinate of the area

getY

double getY()
Returns the base y coordinate of the area.
Specified by:
getY in interface Locatable2D
Returns:
the base y coordinate of the area

getWidth

double getWidth()
Returns the width of the area.
Returns:
the width of the area

getHeight

double getHeight()
Returns the height of the area.
Returns:
the height of the area