Translate

class Translate(translation: ndarray[3])

A Translate transformation shifts a vector by a given translation (x, y, z).

Its matrix looks like:

┏              ┓
┃  1  0  0  x  ┃
┃  0  1  0  y  ┃
┃  0  0  1  z  ┃
┃  0  0  0  1  ┃
┗              ┛

Attributes

translation

The translation to apply to vectors.

Methods

apply

Apply this Translate to a vector.

inverse

The inverse HomogeneousTransformation of this one.

apply(vector: ndarray[3]) ndarray[3]

Apply this Translate to a vector.

inverse()

The inverse HomogeneousTransformation of this one.

translation

The translation to apply to vectors.