|
 |
In article <3d359a2b@news.povray.org>, Warp <war### [at] tag povray org>
wrote:
> On the other hand, it would sometimes be useful to be able to rotate
> a point/object around an axis *not* going through the origin. Is there
> a standard macro for this?
Well, it isn't hard, just:
Orig + vaxis_rotate(Pt - Orig, Axis, Amt)
Since there is a Rotate_Around_Trans() macro and an Axis_Rotate_Trans()
macro, I guess a Axis_Rotate_Around_Trans() macro wouldn't be out of
place, though I'm not sure how useful it would be. How about:
#macro Axis_Rotate_Around_Trans(Orig, Axis, Amt)
transform {
translate -Orig
Axis_Rotate_Trans(Axis, Amt)
translate Orig
}
#end
--
Christopher James Huff <chr### [at] mac com>
POV-Ray TAG e-mail: chr### [at] tag povray org
TAG web site: http://tag.povray.org/
Post a reply to this message
|
 |