glm/test
Miro Knejp c351089e9f Dedicated extension to represent angle values
Defines a dedicated type and operations for angles taking care of the radians/degrees issue and enforcing semantically sane usage.

Applying these types consistently can prevent many problems related to conversions between degrees and radians. Furthermore it only supports operations which preserve the angle's dimension (under the assumption it is not dimensionless) allowing the compiler to detect misuses in equations. By not manually converting between degrees and radians everywhere in your program you can even gain some extra speed efficiency.

Where ever you deal with angles (regardless if class members or function arguments) always use fangle/dangle and let it deal with the calculations necessary for radians/degrees conversions. Never again use a plain `float` in interfaces to represent angles or worry about these nuisances.

The angle types should be no bigger than the datatype used for representation (if they are complain to your compiler vendor), are as efficient in copy and assignment operations as a native float or double, and can be safely passed by-value without fear of performance problems.
2015-05-11 18:02:55 +02:00
..
bug Added tests to main repository 2010-12-17 01:33:17 +00:00
core Added 'fmod' overload to GTX_common with tests, Removed integer specification for 'mod' in GTC_integer #308 2015-02-15 12:38:23 +01:00
external/gli Fixed build 2013-09-17 22:51:39 +02:00
gtc Fixed GCC build 2015-05-01 14:48:55 +02:00
gtx Dedicated extension to represent angle values 2015-05-11 18:02:55 +02:00
.DS_Store Updated test notice 2012-04-07 17:18:04 +01:00
CMakeLists.txt cmake: Don't build tests when not testing 2014-04-15 10:46:45 +01:00
glm.cppcheck Added CPP Check project 2012-01-03 16:22:37 +00:00