Question #685643 on Yade changed: https://answers.launchpad.net/yade/+question/685643
Status: Open => Answered Jan Stránský proposed the following answer: Hi Chanaka, it all depends on how you define sign for a 3d vector (as you noticed, it is somehow artificial). One way is to dot-product the vector with a unit "plus minus vector", e.g. a unit x vector (1,0,0) delta_us_scalar = delta_us.dot(plusMinusUnitVector) # python, it would be similar in C++ 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 : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp