Loading...
Searching...
No Matches
Go to the documentation of this file.
31#ifndef INCLUDED_OOMATHS_h
32#define INCLUDED_OOMATHS_h
38#ifndef OOMATHS_STANDALONE
39#define OOMATHS_STANDALONE 0
42#ifndef OOMATHS_OPENGL_INTEGRATION
43#define OOMATHS_OPENGL_INTEGRATION !OOMATHS_STANDALONE
47#import <Foundation/Foundation.h>
58#if OOMATHS_OPENGL_INTEGRATION
63#if OOMATHS_OPENGL_INTEGRATION
73 #define M_PI 3.14159265358979323846
76 #define M_PI_2 1.57079632679489661923
79 #define M_PI_4 0.78539816339744830962
82 #define M_1_PI 0.31830988618379067154
85 #define M_2_PI 0.63661977236758134308
88 #define M_2_SQRTPI 1.12837916709551257390
91 #define M_SQRT2 1.41421356237309504880
94 #define M_SQRT1_2 0.70710678118654752440
98#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
100 #define MIN(A,B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __a : __b; })
103 #define MAX(A,B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __b : __a; })
106 #define ABS(A) ({ __typeof__(A) __a = (A); __a < 0 ? -__a : __a; })
111 #define MIN(A,B) ((A) < (B) ? (A) : (B))
114 #define MAX(A,B) ((A) > (B) ? (A) : (B))
117 #define ABS(A) ((A) < 0 ? (-(A)) : (A))
128#if !OOMATHS_STANDALONE