Question #692998 on Yade changed:
https://answers.launchpad.net/yade/+question/692998
Status: Open => Answered
Jan Stránský proposed the following answer:
> is there any functions which could calculate the inertia tensor??
not directly, but e.g a matrix representation of inertia tensor could be
obtained by
inertiaTensor = state.inertia.asDiagonal()
or
r = state.ori.toRotationMatrix()
inertiaTensor = r*state.inertia.asDiagonal()*r.transpose()
or
r = state.refOri.toRotationMatrix()
inertiaTensor = r*state.inertia.asDiagonal()*r.transpose()
Which one to use depends on circumstances.
cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp