Designed to contain translation data of the positional tracking. More...
Functions | |
def | init_translation (self, Translation tr) |
Deep copy from another Translation. More... | |
def | init_vector (self, float t1, float t2, float t3) |
def | normalize (self) |
Normalizes the current translation. | |
def | normalize_translation (self, Translation tr) |
Gets the normalized version of a given Translation . More... | |
def | size (self) |
Gets the size of the translation vector. More... | |
def | dot_translation (Translation tr1, Translation tr2) |
Computes the dot product of two Translation objects. More... | |
def | get (self) |
Gets the Translation as a numpy array. More... | |
Designed to contain translation data of the positional tracking.
Translation is a vector as [tx, ty, tz]. You can access the data with the get method that returns a numpy array.
def init_translation | ( | self, | |
Translation | tr | ||
) |
Deep copy from another Translation.
tr | : Translation to be copied |
def init_vector | ( | self, | |
float | t1, | ||
float | t2, | ||
float | t3 | ||
) |
t1 | : First float value |
t2 | : Second float value |
t3 | : Third float value |
def normalize_translation | ( | self, | |
Translation | tr | ||
) |
Gets the normalized version of a given Translation .
tr | : Translation to be used |
def size | ( | self | ) |
Gets the size of the translation vector.
Referenced by Translation.get(), and Orientation.get().
def dot_translation | ( | Translation | tr1, |
Translation | tr2 | ||
) |
Computes the dot product of two Translation objects.
tr1 | : first vector, defined ad a Translation |
tr2 | : sencond vector, defined as a Translation |
def get | ( | self | ) |
Gets the Translation as a numpy array.