Skip to content
Snippets Groups Projects
Commit a3fe5cce authored by Alexander Rose's avatar Alexander Rose
Browse files

added degToRad and radToDeg

parent e9d314ab
Branches
Tags
No related merge requests found
/**
* Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
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
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment