@technobuddha/library
Version:
A large library of useful functions
12 lines (11 loc) • 429 B
TypeScript
import { type Cartesian, type Polar } from './@types/geometry.ts';
import { type UnitOptions } from './angle.ts';
/**
* Convert cartesian coordinates to polar
* @param coordinate - The Cartesian coordinate to convert.
* @param options - see {@link UnitOptions}
* @returns polar coordinated
* @group Geometry
* @category Coordinates
*/
export declare function toPolar(coordinate: Cartesian, { unit }?: UnitOptions): Polar;