Advertisement

local transformations in one matrix

Started by December 02, 2003 07:34 PM
-1 comments, last by evilgidget33 21 years, 3 months ago
im trying to, rather than do the whole subtract origin from quard, apply matrix, add origin im trying to consolidate it into one matrix. right now ive got an overloaded cMatrix constructor which takes translate Tx, Ty, and Tz as params. heres the code - cMatrix GenLocalMat(cMatrix Mat, cVector3 Axis) { return (cMatrix(-Axis.X, -Axis.Y, -Axis.Z)*Mat* cMatrix(Axis.X, Axis.Y, Axis.Z)); } i said axis rather than origin cuz i cant spell axis. is this right? it duznt seem to be working

This topic is closed to new replies.

Advertisement