Bezier.point_at

Bezier.point_at(t)[source]

Compute the point on the curve at the given parameter.

Parameters:
tfloat

The value of the curve parameter. Must be between 0 and 1.

Returns:
compas.geometry.Point

the corresponding point on the curve.

Examples

>>> curve = Bezier([[0.0, 0.0, 0.0], [0.5, 1.0, 0.0], [1.0, 0.0, 0.0]])
>>> print(curve.point_at(0.0))
Point(x=0.000, y=0.000, z=0.000)
>>> print(curve.point_at(1.0))
Point(x=1.000, y=0.000, z=0.000)