UNPKG

igniteui-react-core

Version:
30 lines (29 loc) 1.09 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { Base, markType } from "./type"; import { isNaN_, isInfinity } from "./number"; /** * @hidden */ export let AngleSimplifier = /*@__PURE__*/ (() => { class AngleSimplifier extends Base { static a(a) { if (isNaN_(a) || isInfinity(a)) { return a; } while (a > 360) { a -= 360; } while (a < 0) { a += 360; } return a; } } AngleSimplifier.$t = /*@__PURE__*/ markType(AngleSimplifier, 'AngleSimplifier'); return AngleSimplifier; })();