Class SglMatrixStack
Represents a stack of 4x4 matrices.
Defined in: space_util.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Constructs a SglMatrixStack.
|
Method Attributes | Method Name and Description |
---|---|
clone()
|
|
frustum(left, right, bottom, top, zNear, zFar)
|
|
load(m)
|
|
lookAt(positionX, positionY, positionZ, targetX, targetY, targetZ, upX, upY, upZ)
|
|
multiply(m)
|
|
ortho(left, right, bottom, top, zNear, zFar)
|
|
perspective(fovYRad, aspectRatio, zNear, zFar)
|
|
pop()
|
|
push()
|
|
reset()
|
|
rotate(angleRad, x, y, z)
|
|
scale(x, y, z)
|
|
translate(x, y, z)
|
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