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

static vec3 normalize ( const vec3 v)
static

Definition at line 154 of file matrix.h.

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

Definition at line 172 of file matrix.h.

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

Definition at line 159 of file matrix.h.

static mat4 rotateX ( float  rad)
static

Definition at line 312 of file matrix.h.

static mat4 rotateY ( float  rad)
static

Definition at line 320 of file matrix.h.

static mat4 rotateZ ( float  rad)
static

Definition at line 328 of file matrix.h.

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

Definition at line 350 of file matrix.h.

static mat4 scale ( float  s)
static

Definition at line 357 of file matrix.h.

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

Definition at line 336 of file matrix.h.

static mat4 translate ( const vec3 v)
static

Definition at line 343 of file matrix.h.