OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
matrix.h File Reference
#include <math.h>

Go to the source code of this file.

Classes

struct  vec2
 
struct  vec3
 
struct  vec4
 
struct  mat4
 

Macros

#define PI   3.141592653f
 

Functions

static float smoothstep (float edge0, float edge1, float t)
 
static vec3 normalize (const vec3 &v)
 
static mat4 perspective (float fovy, float aspect, float near, float far)
 
static mat4 orthographic (float left, float right, float bottom, float top, float near, float far)
 
static mat4 inverse (const mat4 &op)
 
static mat4 rotateX (float rad)
 
static mat4 rotateY (float rad)
 
static mat4 rotateZ (float rad)
 
static mat4 translate (float x, float y, float z)
 
static mat4 translate (const vec3 &v)
 
static mat4 scale (float x, float y, float z)
 
static mat4 scale (float s)
 

Macro Definition Documentation

#define PI   3.141592653f

Definition at line 24 of file matrix.h.

Function Documentation

static mat4 inverse ( const mat4 op)
static

Definition at line 192 of file matrix.h.

static vec3 normalize ( const vec3 v)
static

Definition at line 161 of file matrix.h.

static mat4 orthographic ( float  left,
float  right,
float  bottom,
float  top,
float  near,
float  far 
)
static

Definition at line 179 of file matrix.h.

static mat4 perspective ( float  fovy,
float  aspect,
float  near,
float  far 
)
static

Definition at line 166 of file matrix.h.

static mat4 rotateX ( float  rad)
static

Definition at line 319 of file matrix.h.

static mat4 rotateY ( float  rad)
static

Definition at line 327 of file matrix.h.

static mat4 rotateZ ( float  rad)
static

Definition at line 335 of file matrix.h.

static mat4 scale ( float  x,
float  y,
float  z 
)
static

Definition at line 357 of file matrix.h.

static mat4 scale ( float  s)
static

Definition at line 364 of file matrix.h.

static float smoothstep ( float  edge0,
float  edge1,
float  t 
)
static

Definition at line 154 of file matrix.h.

static mat4 translate ( float  x,
float  y,
float  z 
)
static

Definition at line 343 of file matrix.h.

static mat4 translate ( const vec3 v)
static

Definition at line 350 of file matrix.h.