pytransform3d.transformations
.vector_to_direction¶
- pytransform3d.transformations.vector_to_direction(v)[source]¶
Convert 3D vector to direction.
A direction (x, y, z) given by the components of a vector will be represented by [x, y, z, 0] in homogeneous coordinates to which we can apply a transformation.
- Parameters:
- varray-like, shape (3,)
3D vector that contains x, y, and z
- Returns:
- parray-like, shape (4,)
Direction vector with 0 as last element
Examples using pytransform3d.transformations.vector_to_direction
¶
Visualize Wrench