Hi Marc,
On Sat, 2005-06-04 at 19:31 +0200, marc wrote:
> Hi Dirk,
>
> can you please tell me why you push the "setMatrix" in
> ComponentTransform to private. Yes I see you don't want to use that but
> why?
mainly for consistency reasons. If you change the matrix, the other
parameters are not updated, because there are matrices that cannot be
represented using trans/scale/rotate. And if you change one of the other
parameters the matrix will be silently regenerated, and the originally
set one is just gone. it seemed to be safer to just disallow setting the
matrix directly and let people who want a matrix use a simple
TransformChunk instead. If you need to generate a matrix from
trans/scale/rotate you can use Matrix::setTransform() and give the
result to a TransformChunk.
Hope it helps
Dirk
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users