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 vec3 normalize (const vec3 &v)
 
static mat4 transpose (const mat4 &m)
 
static mat4 perspective (float fovy, float aspect, float z_near, float z_far)
 
static mat4 orthographic (float left, float right, float bottom, float top, float z_near, float z_far)
 
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 vec3 normalize ( const vec3 v)
static

Definition at line 155 of file matrix.h.

static mat4 orthographic ( float  left,
float  right,
float  bottom,
float  top,
float  z_near,
float  z_far 
)
static

Definition at line 187 of file matrix.h.

static mat4 perspective ( float  fovy,
float  aspect,
float  z_near,
float  z_far 
)
static

Definition at line 174 of file matrix.h.

static mat4 rotateX ( float  rad)
static

Definition at line 199 of file matrix.h.

static mat4 rotateY ( float  rad)
static

Definition at line 207 of file matrix.h.

static mat4 rotateZ ( float  rad)
static

Definition at line 215 of file matrix.h.

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

Definition at line 237 of file matrix.h.

static mat4 scale ( float  s)
static

Definition at line 244 of file matrix.h.

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

Definition at line 223 of file matrix.h.

static mat4 translate ( const vec3 v)
static

Definition at line 230 of file matrix.h.

static mat4 transpose ( const mat4 m)
static

Definition at line 160 of file matrix.h.