Package com.anylogic.engine
- All Superinterfaces:
Locatable2D
- All Known Subinterfaces:
Path3D
- All Known Implementing Classes:
ShapeCurve,ShapeMultiplePoints,ShapePolyLine
public interface Path2D extends Locatable2D
This interface represents a sequence of
Coordinates of all the points
(x, y) pointsCoordinates of all the points
(getPointDx(int), getPointDy(int))
are relative to the base coordinates
(getX(), getY())- Author:
- AnyLogic North America, LLC https://anylogic.com
| Modifier and Type | Method | Description |
|---|---|---|
int | getNPoints() |
Returns the number of points in the path.
|
double | getPointDx |
Returns the x coordinate of a particular point of the path relative to the start point.
|
double | getPointDy |
Returns the y coordinate of a particular point of the path relative to the start point.
|
double | getX() |
Returns the base x coordinate of the path.
|
double | getY() |
Returns the base y coordinate of the path.
|
double getX()
Returns the base x coordinate of the path.
- Specified by:
getXin interfaceLocatable2D- Returns:
- the base x coordinate of the path
double getY()
Returns the base y coordinate of the path.
- Specified by:
getYin interfaceLocatable2D- Returns:
- the base y coordinate of the path
int getNPoints()
Returns the number of points in the path.
- Returns:
- the number of points in the path
double getPointDx(int i)
Returns the x coordinate of a particular point of the path relative to the start point.
- Parameters:
i- the index of the point (starting from 0)- Returns:
- the x coordinate of the point relative to the start point
double getPointDy(int i)
Returns the y coordinate of a particular point of the path relative to the start point.
- Parameters:
i- the index of the point (starting from 0)- Returns:
- the y coordinate of the point relative to the start point