![]()
Performs a per-component addition of the matrices mat0 and mat1, storing
the result into resultMat.
Arguments:
Returns: !goog.vec.mat3d.Type
return resultMat so that operations can be
chained together.
|
code » | |||||||||||
![]()
Creates a mat3d with all elements initialized to zero.
Returns: !goog.vec.mat3d.Type
The new mat3d.
|
code » | |||||||||||
Returns true if the components of mat0 are equal to the components of mat1.
Arguments:
Returns: boolean
True if the the two matrices are equivalent.
|
code » | |||||||||||
![]()
Retrieves the specified column from the matrix into the given vector
array.
Arguments:
Returns: !goog.vec.vec3d.Type
return vec so that operations can be
chained together.
|
code » | |||||||||||
![]()
Retrieves the column values from the given matrix into the given vector
elements.
Arguments:
|
code » | |||||||||||
Retrieves the element at the requested row and column.
|
code » | |||||||||||
![]()
Retrieves the row values into the given vector.
Arguments:
Returns: !goog.vec.vec3d.Type
return vec so that operations can be
chained together.
|
code » | |||||||||||
![]()
Retrieves the rows of the matrix into the supplied vectors.
Arguments:
|
code » | |||||||||||
Computes the inverse of mat0 storing the result into resultMat. If the
inverse is defined, this function returns true, false otherwise.
Arguments:
Returns: boolean
True if the inverse is defined. If false is returned,
resultMat is not modified.
|
code » | |||||||||||
![]()
Makes the given 3x3 matrix a rotation matrix given Euler angles using
the ZXZ convention.
Given the euler angles [theta1, theta2, theta3], the rotation is defined as
rotation = rotation_z(theta1) * rotation_x(theta2) * rotation_z(theta3),
with theta1 in [0, 2 * pi], theta2 in [0, pi] and theta3 in [0, 2 * pi].
rotation_x(theta) means rotation around the X axis of theta radians.
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained.
|
code » | |||||||||||
![]()
Makes the given 3x3 matrix the identity matrix.
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so operations can be chained.
|
code » | |||||||||||
![]()
Makes the given 3x3 matrix a rotation matrix with the given rotation
angle about the axis defined by the vector (ax, ay, az).
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained.
|
code » | |||||||||||
![]()
Makes the given 3x3 matrix a rotation matrix with the given rotation
angle about the X axis.
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained.
|
code » | |||||||||||
![]()
Makes the given 3x3 matrix a rotation matrix with the given rotation
angle about the Y axis.
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained.
|
code » | |||||||||||
![]()
Makes the given 3x3 matrix a rotation matrix with the given rotation
angle about the Z axis.
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained.
|
code » | |||||||||||
![]()
Makes the given 3x3 matrix a scale matrix with x, y, and z scale factors.
|
code » | |||||||||||
![]()
Makes the given 3x3 matrix a translation matrix with x and y
translation values.
|
code » | |||||||||||
![]()
Makes the given 3x3 matrix the zero matrix.
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so operations can be chained.
|
code » | |||||||||||
![]()
Multiplies the two matrices mat0 and mat1 using matrix multiplication,
storing the result into resultMat.
Arguments:
Returns: !goog.vec.mat3d.Type
return resultMat so that operations can be
chained together.
|
code » | |||||||||||
![]()
Multiplies matrix mat0 with the given scalar, storing the result
into resultMat.
Arguments:
Returns: !goog.vec.mat3d.Type
return resultMat so that operations can be
chained together.
|
code » | |||||||||||
![]()
Transforms the given vector with the given matrix storing the resulting,
transformed matrix into resultVec.
Arguments:
Returns: !goog.vec.vec3d.Type
return resultVec so that operations can be
chained together.
|
code » | |||||||||||
![]()
Rotate the given matrix by angle about the x,y,z axis. Equivalent to:
goog.vec.mat3d.multMat(
mat,
goog.vec.mat3d.makeRotate(goog.vec.mat3d.create(), angle, x, y, z),
mat);
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained.
|
code » | |||||||||||
![]()
Rotate the given matrix by angle about the x axis. Equivalent to:
goog.vec.mat3d.multMat(
mat,
goog.vec.mat3d.makeRotateX(goog.vec.mat3d.create(), angle),
mat);
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained.
|
code » | |||||||||||
![]()
Rotate the given matrix by angle about the y axis. Equivalent to:
goog.vec.mat3d.multMat(
mat,
goog.vec.mat3d.makeRotateY(goog.vec.mat3d.create(), angle),
mat);
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained.
|
code » | |||||||||||
![]()
Rotate the given matrix by angle about the z axis. Equivalent to:
goog.vec.mat3d.multMat(
mat,
goog.vec.mat3d.makeRotateZ(goog.vec.mat3d.create(), angle),
mat);
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained.
|
code » | |||||||||||
![]()
Sets the specified column with the value from the supplied array.
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained together.
|
code » | |||||||||||
![]()
Sets the specified column with the supplied values.
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained together.
|
code » | |||||||||||
![]()
Sets the columns of the matrix from the set of vector elements.
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained together.
|
code » | |||||||||||
![]()
Sets the diagonal values of the matrix from the given vector.
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained together.
|
code » | |||||||||||
![]()
Sets the diagonal values of the matrix from the given values.
|
code » | |||||||||||
![]()
Sets the element at the requested row and column.
|
code » | |||||||||||
![]()
Initializes mat3d mat from Array src.
|
code » | |||||||||||
![]()
Initializes mat3d mat from mat3d src.
Arguments:
Returns: !goog.vec.mat3d.Type
Return mat so that operations can be
chained together.
|
code » | |||||||||||
![]()
Initializes mat3d mat from mat3f src (typed as a Float32Array to
avoid circular goog.requires).
Arguments:
Returns: !goog.vec.mat3d.Type
Return mat so that operations can be
chained together.
|
code » | |||||||||||
![]()
Initializes the matrix from the set of values. Note the values supplied are
in column major order.
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained together.
|
code » | |||||||||||
![]()
Sets the row values from the supplied vector.
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained together.
|
code » | |||||||||||
![]()
Sets the row values from the supplied values.
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained together.
|
code » | |||||||||||
![]()
Sets the rows of the matrix from the supplied vectors.
Arguments:
Returns: !goog.vec.mat3d.Type
return mat so that operations can be
chained together.
|
code » | |||||||||||
![]()
Performs a per-component subtraction of the matrices mat0 and mat1,
storing the result into resultMat.
Arguments:
Returns: !goog.vec.mat3d.Type
return resultMat so that operations can be
chained together.
|
code » | |||||||||||
![]()
Decomposes a rotation matrix into Euler angles using the ZXZ convention so
that rotation = rotation_z(theta1) * rotation_x(theta2) * rotation_z(theta3),
with theta1 in [0, 2 * pi], theta2 in [0, pi] and theta3 in [0, 2 * pi].
rotation_x(theta) means rotation around the X axis of theta radians.
Arguments:
Returns: !goog.vec.vec3d.Type
return euler so that operations can be
chained together.
|
code » | |||||||||||
![]()
Transposes the given matrix mat storing the result into resultMat.
Arguments:
Returns: !goog.vec.mat3d.Type
return resultMat so that operations can be
chained together.
|
code » |
![]()
No description.
|
Code » |