polarise: Convert Cartesian coordinates to Polar coordinates

View source: R/geoevgam.R

polariseR Documentation

Convert Cartesian coordinates to Polar coordinates

Description

Convert Cartesian coordinates to Polar coordinates

Usage

polarise(x, norm = 2)

Arguments

x

A matrix with exactly 2 rows representing the x and y coordinates.

norm

A numeric value specifying the L-p norm for calculating the radius. Defaults to 2 (Euclidean).

Value

A list containing:

r

The calculated radii (distances from origin).

phi

The angles in radians, adjusted to the range [0, 2*pi].


evgam documentation built on Sept. 3, 2026, 5:09 p.m.