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 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 173 of file matrix.h.

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

Definition at line 160 of file matrix.h.

static mat4 rotateX ( float  rad)
static

Definition at line 185 of file matrix.h.

static mat4 rotateY ( float  rad)
static

Definition at line 193 of file matrix.h.

static mat4 rotateZ ( float  rad)
static

Definition at line 201 of file matrix.h.

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

Definition at line 223 of file matrix.h.

static mat4 scale ( float  s)
static

Definition at line 230 of file matrix.h.

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

Definition at line 209 of file matrix.h.

static mat4 translate ( const vec3 v)
static

Definition at line 216 of file matrix.h.