map_cart_cyl(oscar) Animation map_cart_cyl(oscar)
NAME
map_cart_cyl - a class converting Cartesian to cylindrical
coordinates
DESCRIPTION
This class is used to convert Cartesian 3D coordinates
(x,y,z) to cylindrical coordinates (r = sqrt(x^2+y^2), phi
= acos(x/r), z). It is not instanced.
SUPERCLASS
object
MESSAGES
: (x, y, z)
Sets Cartesian coordinates (x, y, z) of a converted
point.
! Returns cylindrical coordinates of the point set by
":" message.
EXAMPLE
vector new:a = [map_cart_cyl : (1,2,3) !] print!;
SEE ALSO
vector
Please send comments and suggestions toconsult@rpi.edu