rzp_to_pts.m
PURPOSE:
convert a vector of points defined in toroidal geometry as:
rzp = [r,z,phi] to xyz points: xpt = [x, y, z].
SYNTAX:
xpt= rzp_to_pts(rzp)
INPUT:
rzp = toroidal coordinates of each point 3 columns: [r,z,phi(radians)]
NOTE: phi is zero along x-axis and increased toward +y. This is counter-
clockwise when viewed from top. (DIII-D hase Phi clockwise)
NOTE: You should use Right Hand R,Phi,Z order rather than R,Z,Phi (left hand)
OUTPUT:
xpt = coordinates of each point in 3-space. Contains 3 columns: [x,y,z]
SEE ALSO: rpz_to_xyz rzpn_to_pts pts_to_fil ptsn_to_fil
Dependencies