cen_xy {dualtrees} | R Documentation |
xy <-> cen
Description
Translate the centre of mass back and forth between polar and cartesian coordinates.
Usage
cen2xy(cen)
xy2cen(xy)
Arguments
cen |
the centre of mass of a wavelet spectrum (rho, phi, z), output of |
xy |
the centre of mass in cartesian coordinates (x, y, z), output of cen2xy |
Details
These functions allow you to translate back and forth between the two coordinate systems. dt2cen
represents the sepctrum's centre in cylinder coordinates because that is more intuitive than the x-y-z position within the hexagonal geometry. If you want to compare two spectra, it makes more sense to consider their distance in terms of x1-x2, y1-y2 since the difference in angle is only meaningful for reasonably large radii.
Note
cen2xy
is not the same thing as cen2uv
!
See Also
[Package dualtrees version 0.1.5 Index]