[pstricks] pst-3Dplot
Patrice Mégret
Patrice.Megret at umons.ac.be
Wed Sep 2 10:53:24 CEST 2009
Dear Herbert,
In the attached files you will find the transformation from the proposed spherical coordinates to (x,y,z). Then from (x,y,z) to (x2d,y2d) it is your subroutines depending on CoorType key.
In fact the spherical coordinate system used in electromagnetism (r,theta_2,phi_2) is nearly the same as the one you used (r,phi_1,theta_1) except that (1) latitude is measured from the z-axis and from not the xy plane, and (2) the order is r, theta_2, phi_2 and not r, phi_1, theta_1.
This change also implies theta_2=pi/2 -theta_1.
Best regards,
Patrice
-----Message d'origine-----
De : pstricks-bounces at tug.org [mailto:pstricks-bounces at tug.org] De la part de Herbert Voss
Envoyé : samedi 29 août 2009 15:24
À : Graphics with PSTricks
Objet : Re: [pstricks] pst-3Dplot
Patrice Mégret schrieb:
> Oups, I was of course speaking about spherical coordinates (page 6 of st-3dplot documentation).
>> Would it be possible to have a second cylindrical system (r,theta1,phi1) in which:
>> r is the length of the vector,
>> theta (0<=theta<=180) is the angle between the vector and z-axis,
>> phi (0<=phi<360) the angle between the x-axis and the projection of the vector on the xy plane
>> in order to have the same conventions as in mathematical book related to vector analysis?
Patrice,
can you provide the tranformation equations?
f(x,theta,phi)->f(x,y)
Herbert
_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
Important notification: In the context of the creation of the University of Mons, FPMs email address policy is changing from '@fpms.ac.be' to '@umons.ac.be' (or @student.fpms.ac.be to @student.umons.ac.be), please update your contact list accordingly.
Note importante: Dans le cadre de la création de l'Université de Mons, la stratégie d'adresse de courrier électronique de la FPMs change de '@fpms.ac.be' à '@umons.ac.be' (ou @student.fpms.ac.be to @student.umons.ac.be), merci de mettre à jour votre liste d'adresses en conséquence.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pm_spherical.ps
Type: application/postscript
Size: 268810 bytes
Desc: pm_spherical.ps
URL: <http://tug.org/pipermail/pstricks/attachments/20090902/3c223a99/attachment-0001.ps>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pm_spherical.tex
Type: application/x-tex
Size: 3413 bytes
Desc: pm_spherical.tex
URL: <http://tug.org/pipermail/pstricks/attachments/20090902/3c223a99/attachment-0001.tex>
More information about the PSTricks
mailing list