public interface Path2D extends Locatable2D
(x, y)
points(getPointDx(int)
, getPointDy(int)
)
are relative to the base coordinates
(getX()
, getY()
)
Modifier and Type | Method and Description |
---|---|
int |
getNPoints()
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.
|
double |
getPointDy(int i)
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()
getX
in interface Locatable2D
double getY()
getY
in interface Locatable2D
int getNPoints()
double getPointDx(int i)
i
- the index of the point (starting from 0)double getPointDy(int i)
i
- the index of the point (starting from 0)Copyright © AnyLogic North America, LLC. All Rights Reserved.