Line.transform

Line.transform(T)[source]

Transform this line.

Parameters

T (compas.geometry.Transformation | list[list[float]]) – 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)