|
|
Mahalis wrote:
>
> How would I rotate a sphere so that a certain point on the sphere would
> point at location<x,y,z>?
Mahalis wrote:
>
> How would I rotate a sphere so that a certain point on the sphere would
> point at location<x,y,z>?
You can find the code for my ReorientMatrix() macro here:
news://news.povray.org/3B8ECB7D.571A4BE2%40hotmail.com
(In my reply to Dave Dunn's "Vexing Vector Problem" 31. Aug.)
And then you may write something like this:
#declare YourSphere = ... // You specify
#declare vPointOnSphere = ... // You specify
#declare vPointAtLocation = <LocX, LocY, LocZ>;
object {
YourSphere
ReorientMatrix(vPointOnSphere, vPointAtLocation)
}
Hopefully this will do the trick for you.
(My ReorientMatrix() macro does the same as
John Van Sickle's Reorient() macro, but with
a slightly different method.)
Tor Olav
Post a reply to this message
|
|