psychopy.tools.coordinatetools
¶Functions and classes related to coordinate system conversion
|
Convert from cartesian to polar coordinates. |
|
Convert from cartesian coordinates (x,y,z) to spherical (elevation, azimuth, radius). |
|
Convert from polar to cartesian coordinates. |
|
Convert from spherical coordinates (elevation, azimuth, radius) to cartesian (x,y,z). |
Convert from cartesian to polar coordinates.
theta, radius = cart2pol(x, y, units=’deg’)
units refers to the units (rad or deg) for theta that should be returned
Convert from cartesian coordinates (x,y,z) to spherical (elevation, azimuth, radius). Output is in degrees.
array3xN[el,az,rad] = cart2sph(array3xN[x,y,z]) OR elevation, azimuth, radius = cart2sph(x,y,z)
If working in DKL space, z = Luminance, y = S and x = LM