Model.quatrotate#

Model.quatrotate(q0, q1, q2, q3)#

The model is rotated about the matrix created from the given quaternion.

Parameters:
  • q0 (double) – The 1st element of quartenion vector.

  • q1 (double) – The 2nd element of quartenion vector.

  • q2 (double) – The 3rd element of quartenion vector.

  • q3 (double) – The 4th element of quartenion vector.

Example#

Rotate the model#
import hm
import hm.entities as ent

model = hm.Model()

model.quatrotate(
    q0=-0.000125576946, q1=0.0107329493, q2=-0.000656577404, q3=0.999942177
)