UNPKG

@technobuddha/library

Version:
18 lines (17 loc) 641 B
import { type UnitOptions } from './angle.ts'; /** * Calculates the reflection of an angle across a specified axis. * @param angle - The angle to reflect. * @param axis - The axis across which to reflect the angle. * @param options - see {@link UnitOptions} * @returns The reflected angle, in the specified units. * @example * ```typescript * angleReflection(0, Math.PI / 2); // π * angleReflection((3 * Math.PI) / 2, Math.PI); // π/2 * angleReflection(60, 30, 'degrees'); // 0 * ``` * @group Geometry * @category Angle */ export declare function angleReflection(angle: number, axis: number, { unit }?: UnitOptions): number;