-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmath.cpccMath.h
More file actions
22 lines (20 loc) · 872 Bytes
/
math.cpccMath.h
File metadata and controls
22 lines (20 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* *****************************************
* File: math.cpccMath.h
* Version: see function getClassVersion()
* Purpose: Portable (cross-platform), light-weight library
* Mathematical functions and utilities
* *****************************************
* Library: Cross Platform C++ Classes (cpcc)
* Copyright: 2014 StarMessage software.
* License: Free for opensource projects.
* Commercial license for closed source projects.
* Web: http://www.StarMessageSoftware.com/cpcclibrary
* Download: https://code.google.com/p/cpcc/
* https://github.com/starmessage/cpcc
* email: sales -at- starmessage.info
* *****************************************
*/
#pragma once
#define DEGREES_TO_RADIANS( X ) (( X ) * 0.0174532925f) // PI / 180
#define RADIANS_TO_DEGREES( X ) (( X ) * 57.295779513f) // 180 / PI