Class Index | File Index

Classes


Class SglMatrixStack

Represents a stack of 4x4 matrices.
Defined in: space_util.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Constructs a SglMatrixStack.
Method Summary
Method Attributes Method Name and Description
 
 
frustum(left, right, bottom, top, zNear, zFar)
 
load(m)
 
 
lookAt(positionX, positionY, positionZ, targetX, targetY, targetZ, upX, upY, upZ)
 
 
ortho(left, right, bottom, top, zNear, zFar)
 
perspective(fovYRad, aspectRatio, zNear, zFar)
 
pop()
 
push()
 
 
rotate(angleRad, x, y, z)
 
scale(x, y, z)
 
translate(x, y, z)
Class Detail
SglMatrixStack()
Constructs a SglMatrixStack.
Method Detail
clone()

frustum(left, right, bottom, top, zNear, zFar)
Parameters:
left
right
bottom
top
zNear
zFar

load(m)
Parameters:
m

loadIdentity()

lookAt(positionX, positionY, positionZ, targetX, targetY, targetZ, upX, upY, upZ)
Parameters:
positionX
positionY
positionZ
targetX
targetY
targetZ
upX
upY
upZ

multiply(m)
Parameters:
m

ortho(left, right, bottom, top, zNear, zFar)
Parameters:
left
right
bottom
top
zNear
zFar

perspective(fovYRad, aspectRatio, zNear, zFar)
Parameters:
fovYRad
aspectRatio
zNear
zFar

pop()

push()

reset()

rotate(angleRad, x, y, z)
Parameters:
angleRad
x
y
z

scale(x, y, z)
Parameters:
x
y
z

translate(x, y, z)
Parameters:
x
y
z

Documentation generated by JsDoc Toolkit 2.3.2 on Thu Jan 21 2010 20:07:02 GMT+0100 (CET)