Vector.transform

Vector.transform(T)[source]

Transform this vector.

Parameters:
Tcompas.geometry.Transformation | list[list[float]]

The transformation.

Returns:
None

Examples

>>> from compas.geometry import Rotation
>>> u = Vector(1.0, 0.0, 0.0)
>>> R = Rotation.from_axis_and_angle([0.0, 0.0, 1.0], math.radians(90))
>>> u.transform(R)
>>> u
Vector(0.000, 1.000, 0.000)