UNPKG

@technobuddha/library

Version:
12 lines (11 loc) 429 B
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;