Skip to main content

Point

Point is a vertex of a Polygon or Path, taken from its points sequence.

FieldTypeDescription
xFloatx coordinate.
yFloaty coordinate.
let route = path("met1", 2, x0=0., y0=0., x1=100., y1=40.);
let endpoint = route.points[1];
eq(endpoint.x, 100.);

You can't construct a point on its own; it always comes from a polygon or path.