POV-Ray : Newsgroups : povray.binaries.images : Ping Pong : Re: Ping Pong Server Time
2 Aug 2024 04:18:12 EDT (-0400)
  Re: Ping Pong  
From: alphaQuad
Date: 24 Mar 2008 15:45:00
Message: <web.47e8126841aa233d87aa2f830@news.povray.org>
Right hand method***********
>       r * (o * v - p * e * M),
>       -r * (e * sin(i)),
>       r * (p * v + o * e * M)



Left (POV) method:

M = planets[j].DailyMotion * days;
M += planets[j].MeanLongitude - planets[j].Perihelion;
e = planets[j].Eccentricity;
E = SolveKepler(M, e);
r = planets[j].MeanDistance * (1.0 - e * cos(E));
v = 2.0L * atan(sqrt((1.0L + e) / (1.0L - e)) * tan(E / 2.0L));
o = planets[j].AscendingNode;
p = planets[j].Perihelion;
i = planets[j].Inclination;

r * (cos(o) * cos(v + p - o) - sin(o) * sin(v + p - o) * cos(i)),
r * (sin(v + p - o) * sin(i)),
-r * (sin(o) * cos(v + p - o) + cos(o) * sin(v + p - o) * cos(i))


computers and me dont get along today


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.