composition
Interfaces
Variables
- composition.EnumCompositionType
Type: string []
- composition.EnumNodeType
Type: string []
Functions
- composition.dot3D(v1, v2)
Returns the inner product (i.e. dot product) of two 3D vectors.
- Arguments:
v1 –
composition.IVec3()
v2 –
composition.IVec3()
- Returns:
number
- composition.mat3(row0, row1, row2)
Returns a 3x3 matrix composed of 3 rows.
- Arguments:
row0 –
composition.IVec3()
row1 –
composition.IVec3()
row2 –
composition.IVec3()
- Returns:
- composition.mat3FromArray(rawNumbers)
- Arguments:
rawNumbers – number []
- Returns:
- composition.mat3ToArray(mat)
Builds up a mat3 by feeding it with an array of 9 numbers
- Arguments:
mat –
composition.IMat3()
- Returns:
number []
- composition.mulmat3(m, v)
Transforms a vec3 by a mat3.
- Arguments:
- Returns:
- composition.prodmat3(m1, m2)
returns the product of 2 mat3
- Arguments:
m1 –
composition.IMat3()
m2 –
composition.IMat3()
- Returns:
- composition.transposemat3(mat)
transpose a mat3
- Arguments:
mat –
composition.IMat3()
- Returns:
- composition.vec3(x, y, z)
Returns a 3D vector.
- Arguments:
x – number
y – number
z – number
- Returns: