Class JSC3D.Math3D
Math3D
This class provides some utility methods for 3D mathematics.
Defined in: jsc3d.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
JSC3D.Math3D.normalizeVectors(src, dest)
Normalize vectors.
|
<static> |
JSC3D.Math3D.transformVectors(mat, vecs, xfvecs)
Transform vectors using the given matrix.
|
<static> |
JSC3D.Math3D.transformVectorZs(mat, vecs, xfveczs)
Transform vectors' z components using the given matrix.
|
Method Detail
<static>
JSC3D.Math3D.normalizeVectors(src, dest)
Normalize vectors.
- Parameters:
- {Array} src
- a batch of vectors to be normalized.
- {Array} dest
- where to output the normalized results.
<static>
JSC3D.Math3D.transformVectors(mat, vecs, xfvecs)
Transform vectors using the given matrix.
- Parameters:
- {JSC3D.Matrix3x4} mat
- the transformation matrix.
- {Array} vecs
- a batch of vectors to be transform.
- {Array} xfvecs
- where to output the transformed vetors.
<static>
JSC3D.Math3D.transformVectorZs(mat, vecs, xfveczs)
Transform vectors' z components using the given matrix.
- Parameters:
- {JSC3D.Matrix3x4} mat
- the transformation matrix.
- {Array} vecs
- a batch of vectors to be transform.
- {Array} xfveczs
- where to output the transformed z components of the input vectors.