APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

RotationZ3D in Java/Javascript post and replies

Return to the RotationZ3D in Java/Javascript thread
Login to post to this thread

RotationZ3D in Java/Javascript
Juan M. Aguirregabiria
12 Posts

Hi,
Which is the difference between the Java and Javascript versions of Rotation3D elements?
As you can see in the attached files, in the Javascript version the Ellipsoid3D on the left is misaligned.
Regards.
Juan M. Aguirregabiria

Attached File: free.zip


Replies to RotationZ3D in Java/Javascript

Re: RotationZ3D in Java/Javascript -
Juan M. Aguirregabiria
12 Posts

Hi,

Finally I it figured out: the Rotation?3D elements are applied in the opposite order in JavaScript.
Regards



Re: Re: RotationZ3D in Java/Javascript -
Francisco Esquembre
237 Posts

My excuses for not participating earlier. I lost the previous email.

The only difference I can think of is that the rotation in JS is always applied with respect to the origin, not the center of the element.

But now that you mention this other difference, we'll have a closer look at it.

Paco



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book