|
Hi
I'm
probably missing something here...........
I
needed to rotate about an arbitrary axis i.e. about a vector (direction) through
a point (origin) by angle (angle)
if the
point passes through the origin I can say
aTransform3D.setRotation(new AxisAngle4f(direction, angle));
but
that's a rather special case. AxisAngle seems a bit useless if it can't
handle any axis that doesn't pass through the origin.
So I
end up having set up the transforms for the shift to the origin, the rotate, and
the shift back and multiply them up myself.
Which
is fine But.... Unless there is another handle that I haven't found, then
can I suggest that AxisAngle should hold a general axis of rotation so that
something like
aTransform3D.setRotation(new AxisAngle7f(origin, direction,
angle));
And
yes, I know I can do it myself, but these basic Transform3D
facilities
Alex Bowden
|
