reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

ofMathConstants.h File Reference
#include "ofConstants.h"
#include "glm/fwd.hpp"

Go to the source code of this file.

Macros

#define PI   3.14159265358979323846
 
#define TWO_PI   6.28318530717958647693
 
#define M_TWO_PI   6.28318530717958647693
 
#define FOUR_PI   12.56637061435917295385
 
#define HALF_PI   1.57079632679489661923
 
#define DEG_TO_RAD   (PI/180.0)
 
#define RAD_TO_DEG   (180.0/PI)
 
#define MIN(x, y)   (((x) < (y)) ? (x) : (y))
 
#define MAX(x, y)   (((x) > (y)) ? (x) : (y))
 
#define CLAMP(val, min, max)   ((val) < (min) ? (min) : ((val > max) ? (max) : (val)))
 
#define ABS(x)   (((x) < 0) ? -(x) : (x))
 

Typedefs

using ofDefaultVec2 = glm::vec2
 
using ofDefaultVec3 = glm::vec3
 
using ofDefaultVec4 = glm::vec4
 

Macro Definition Documentation

◆ ABS

#define ABS (   x)    (((x) < 0) ? -(x) : (x))

◆ CLAMP

#define CLAMP (   val,
  min,
  max 
)    ((val) < (min) ? (min) : ((val > max) ? (max) : (val)))

◆ DEG_TO_RAD

#define DEG_TO_RAD   (PI/180.0)

◆ FOUR_PI

#define FOUR_PI   12.56637061435917295385

◆ HALF_PI

#define HALF_PI   1.57079632679489661923

◆ M_TWO_PI

#define M_TWO_PI   6.28318530717958647693

◆ MAX

#define MAX (   x,
 
)    (((x) > (y)) ? (x) : (y))

◆ MIN

#define MIN (   x,
 
)    (((x) < (y)) ? (x) : (y))

◆ PI

#define PI   3.14159265358979323846

◆ RAD_TO_DEG

#define RAD_TO_DEG   (180.0/PI)

◆ TWO_PI

#define TWO_PI   6.28318530717958647693

Typedef Documentation

◆ ofDefaultVec2

using ofDefaultVec2 = glm::vec2

◆ ofDefaultVec3

using ofDefaultVec3 = glm::vec3

◆ ofDefaultVec4

using ofDefaultVec4 = glm::vec4