www.jpct.net
jPCT  a 3d engine for Java => Support => Topic started by: raft on January 02, 2010, 04:31:47 pm

hi,
how can i create a rotation matrix such that, when applied, it rotates a direction vector to another ?
formally:
SimpleVector from;
Simplevector to;
from.matMul(m);
from.equals(to); // > should be true ignoring rounding errors

Getting the rotation matrix of the first vector, inverting it and multiplying the result with the rotation matrix of the second vector might work...

yes it works, thanks :)