UNPKG

@technobuddha/library

Version:
10 lines (9 loc) 374 B
import type { Cartesian, Polar } from '../coordinates'; /** * Convert polar coordinates to cartesian * @param radius Radius. * @param angle Angle in radians (zero points in +X direction). * @returns Object containing the X and Y-distance for the angle and radius. */ export declare function toCartesian({ radius, angle }: Polar): Cartesian; export default toCartesian;