rtp2xyz_ (r_rtp,
theta=0,
phi=0,
**name_Cartesian_and_kwds)
|
|
Convert spherical, polar (r, theta, phi) to
cartesian (x, y, z) coordinates.
- Arguments:
r_rtp - Radial distance (scalar , conventially
meter ) or a previous RadiusThetaPhi3Tuple instance.
theta - Inclination theta (radians with
respect to the positive z-axis), required if
r_rtp is scalar , ignored
otherwise.
phi - Azimuthal angle phi (radians ),
like theta .
name_Cartesian_and_kwds - Optional name=NN (str ), a
Cartesian=None class to return the
coordinates and optional, additional
Cartesian keyword arguments.
- Returns:
- A
Cartesian(x, y, z) instance or if no
Cartesian keyword argument is given a Vector3Tuple(x, y, z) , with
x , y and z in the same
units as radius r , meter
conventionally.
- Raises:
TypeError - Invalid r_rtp , theta ,
phi or
name_Cartesian_and_kwds item.
|