UNPKG

@dominicstop/utils

Version:

Yet another event emitter written in typescript.

33 lines 1.1 kB
import { Cloneable } from "../types/Cloneable"; import { ValueRepresentable } from "../types/ValueRepresentable"; import { Point } from "./Point"; export type AngleUnit = 'radians' | 'degrees'; export type AngleValue = { angleUnit: AngleUnit; angleValue: number; }; export declare class Angle implements Cloneable<Angle>, ValueRepresentable<AngleValue> { angleUnit: AngleUnit; angleRawValue: number; constructor(args: AngleValue); get asValue(): AngleValue; get radians(): number; get degrees(): number; get normalized(): Angle; get isZero(): boolean; clone(): Angle; getPointAlongCircle(args: { radius: number; centerPoint: Point; isClockwise: boolean; }): Point; computeMidAngle(args: { otherAngle: Angle; isClockwise: boolean; }): Angle; addOtherAngle(otherAngle: Angle): Angle; static initFromDegrees(degreeValue: number): Angle; static initFromRadians(radianValue: number): Angle; static addTwoAngles(angleA: Angle, angleB: Angle): Angle; } //# sourceMappingURL=Angle.d.ts.map