Translate
- class Translate(translation: ndarray[3])
A
Translate
transformation shifts a vector by a giventranslation
(x, y, z)
.Its matrix looks like:
┏ ┓ ┃ 1 0 0 x ┃ ┃ 0 1 0 y ┃ ┃ 0 0 1 z ┃ ┃ 0 0 0 1 ┃ ┗ ┛
Attributes
The translation to apply to vectors.
Methods
Apply this
Translate
to a vector.The inverse
HomogeneousTransformation
of this one.- inverse()
The inverse
HomogeneousTransformation
of this one.
- translation
The translation to apply to vectors.