Line.transform

Line.transform(T)[source]

Transform this line.

Parameters:
Tcompas.geometry.Transformation

The transformation.

Returns:
None

Examples

>>> from math import radians
>>> from compas.geometry import Rotation
>>> line = Line([0.0, 0.0, 0.0], [1.0, 0.0, 0.0])
>>> R = Rotation.from_axis_and_angle([0.0, 0.0, 1.0], radians(90))
>>> line.transform(R)
>>> line.end
Point(0.000, 1.000, 0.000)