Polyline.point_at

Polyline.point_at(t, snap=False)[source]

Point on the polyline at a specific normalized parameter.

Parameters:
tfloat

The parameter value.

snapbool, optional

If True, return the closest polyline point.

Returns:
compas.geometry.Point

The point on the polyline.

Examples

>>> polyline = Polyline([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [1.0, 1.0, 0.0]])
>>> polyline.point(0.75)
Point(1.000, 0.500, 0.000)