ChiefOfGxBxL/WC3MapTranslator

View on GitHub
lib/AngleConverter.ts

Summary

Maintainability
A
0 mins
Test Coverage
export function deg2Rad(angleInDegrees: number): number {
    return angleInDegrees * Math.PI / 180;
}

export function rad2Deg(angleInRadians: number): number {
    return angleInRadians * 180 / Math.PI;
}