/** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose */ export function degToRad (deg: number) { return deg * 0.01745 // deg * Math.PI / 180 } export function radToDeg (rad: number) { return rad * 57.29578 // rad * 180 / Math.PI }