![]()
Performs a per-component addition of the matrix mat0 and mat1, storing
the result into resultMat.
Arguments:
Returns: goog.vec.Mat4.AnyType
return resultMat so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Use cloneFloat32.
Creates a clone of a 4x4 matrix of Float32.
Arguments:
Returns: !goog.vec.Mat4.Type
The new 4x4 element matrix.
|
code » | ||||||||||||||||||
![]()
Creates a clone of a 4x4 matrix of Float32.
Arguments:
Returns: !goog.vec.Mat4.Float32
The new 4x4 element matrix.
|
code » | ||||||||||||||||||
![]()
Creates a clone of a 4x4 matrix of Float64.
Arguments:
Returns: !goog.vec.Mat4.Float64
The new 4x4 element matrix.
|
code » | ||||||||||||||||||
![]()
Use createFloat32.
Creates the array representation of a 4x4 matrix of Float32.
The returned matrix is cleared to all zeros.
Returns: !goog.vec.Mat4.Type
The new matrix.
|
code » | ||||||||||||||||||
![]()
Creates the array representation of a 4x4 matrix of Float32.
The use of the array directly instead of a class reduces overhead.
The returned matrix is cleared to all zeros.
Returns: !goog.vec.Mat4.Float32
The new matrix.
|
code » | ||||||||||||||||||
![]()
Creates a 4x4 matrix of Float32 initialized from the given array.
Arguments:
Returns: !goog.vec.Mat4.Float32
The new, 16 element array.
|
code » | ||||||||||||||||||
![]()
Creates a 4x4 matrix of Float32 initialized from the given values.
Arguments:
Returns: !goog.vec.Mat4.Float32
The new, 16 element array.
|
code » | ||||||||||||||||||
![]()
Creates a 4x4 identity matrix of Float32.
Returns: !goog.vec.Mat4.Float32
The new 16 element array.
|
code » | ||||||||||||||||||
![]()
Creates the array representation of a 4x4 matrix of Float64.
The returned matrix is cleared to all zeros.
Returns: !goog.vec.Mat4.Float64
The new matrix.
|
code » | ||||||||||||||||||
![]()
Creates a 4x4 matrix of Float64 initialized from the given array.
Arguments:
Returns: !goog.vec.Mat4.Float64
The new, nine element array.
|
code » | ||||||||||||||||||
![]()
Creates a 4x4 matrix of Float64 initialized from the given values.
Arguments:
Returns: !goog.vec.Mat4.Float64
The new, 16 element array.
|
code » | ||||||||||||||||||
![]()
Creates a 4x4 identity matrix of Float64.
Returns: !goog.vec.Mat4.Float64
The new 16 element array.
|
code » | ||||||||||||||||||
![]()
Use createFloat32FromArray.
Creates a 4x4 matrix of Float32 initialized from the given array.
Arguments:
Returns: !goog.vec.Mat4.Type
The new, nine element array.
|
code » | ||||||||||||||||||
![]()
Use createFloat32FromValues.
Creates a 4x4 matrix of Float32 initialized from the given values.
Arguments:
Returns: !goog.vec.Mat4.Type
The new, 16 element array.
|
code » | ||||||||||||||||||
![]()
Use createFloat32Identity.
Creates the array representation of a 4x4 matrix of Float32.
The returned matrix is cleared to all zeros.
Returns: !goog.vec.Mat4.Type
The new 16 element array.
|
code » | ||||||||||||||||||
![]()
Creates the array representation of a 4x4 matrix of Number.
The returned matrix is cleared to all zeros.
Returns: !goog.vec.Mat4.Number
The new matrix.
|
code » | ||||||||||||||||||
![]()
Creates a 4x4 identity matrix of Number.
The returned matrix is cleared to all zeros.
Returns: !goog.vec.Mat4.Number
The new 16 element array.
|
code » | ||||||||||||||||||
Computes the determinant of the matrix.
Arguments:
Returns: number
The determinant of the matrix.
|
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.
Arguments:
Returns: goog.vec.Vec4.AnyType
return vec so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Retrieves the column values from the given matrix into the given vectors.
Arguments:
|
code » | ||||||||||||||||||
![]()
Gets the diagonal values of the matrix into the given vector.
Arguments:
Returns: goog.vec.Vec4.AnyType
return vec so that operations can be
chained together.
|
code » | ||||||||||||||||||
Retrieves the element at the requested row and column.
|
code » | ||||||||||||||||||
![]()
Retrieves the row values into the given vector.
Arguments:
Returns: goog.vec.Vec4.AnyType
return vec so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Retrieves the rows of the matrix into the supplied vectors.
Arguments:
|
code » | ||||||||||||||||||
![]()
Retrieves the translation component of the transformation matrix.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained.
|
code » | ||||||||||||||||||
Computes the inverse of mat 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 4x4 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.Mat4.AnyType
return mat so that operations can be
chained.
|
code » | ||||||||||||||||||
![]()
Makes the given 4x4 matrix a perspective projection matrix.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained.
|
code » | ||||||||||||||||||
![]()
Makes the given 4x4 matrix the identity matrix.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so operations can be chained.
|
code » | ||||||||||||||||||
![]()
Makes the given 4x4 matrix a modelview matrix of a camera so that
the camera is 'looking at' the given center point.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained.
|
code » | ||||||||||||||||||
![]()
Makes the given 4x4 matrix an orthographic projection matrix.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained.
|
code » | ||||||||||||||||||
![]()
Makse the given 4x4 matrix perspective projection matrix given a
field of view and aspect ratio.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained.
|
code » | ||||||||||||||||||
![]()
Makes the given 4x4 matrix a rotation matrix with the given rotation
angle about the axis defined by the vector (ax, ay, az).
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained.
|
code » | ||||||||||||||||||
![]()
Makes the given 4x4 matrix a rotation matrix with the given rotation
angle about the X axis.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained.
|
code » | ||||||||||||||||||
![]()
Makes the given 4x4 matrix a rotation matrix with the given rotation
angle about the Y axis.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained.
|
code » | ||||||||||||||||||
![]()
Makes the given 4x4 matrix a rotation matrix with the given rotation
angle about the Z axis.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained.
|
code » | ||||||||||||||||||
![]()
Makes the given 4x4 matrix as a scale matrix with x, y and z scale factors.
|
code » | ||||||||||||||||||
![]()
Makes the given 4x4 matrix a translation matrix with x, y and z
translation factors.
|
code » | ||||||||||||||||||
![]()
Makes the given 4x4 matrix the zero matrix.
Arguments:
Returns: !goog.vec.Mat4.AnyType
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.Mat4.AnyType
return resultMat so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Multiplies matrix mat with the given scalar, storing the result
into resultMat.
Arguments:
Returns: goog.vec.Mat4.AnyType
return resultMat so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Transforms the given vector with the given matrix storing the resulting,
transformed vector into resultVec. The input vector is multiplied against the
upper 3x4 matrix omitting the projective component.
Arguments:
Returns: goog.vec.Vec3.AnyType
return resultVec so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Transforms the given vector with the given matrix storing the resulting,
transformed vector into resultVec. The input vector is multiplied against the
upper 3x3 matrix omitting the projective component and translation
components.
Arguments:
Returns: goog.vec.Vec3.AnyType
return resultVec so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Transforms the given vector with the given matrix storing the resulting,
transformed vector into resultVec. The input vector is multiplied against the
full 4x4 matrix with the homogeneous divide applied to reduce the 4 element
vector to a 3 element vector.
Arguments:
Returns: goog.vec.Vec3.AnyType
return resultVec so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Transforms the given vector with the given matrix storing the resulting,
transformed vector into resultVec.
Arguments:
Returns: goog.vec.Vec4.AnyType
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.Mat4.multMat(
mat,
goog.vec.Mat4.makeRotate(goog.vec.Mat4.create(), angle, x, y, z),
mat);
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained.
|
code » | ||||||||||||||||||
![]()
Rotate the given matrix by angle about the x axis. Equivalent to:
goog.vec.Mat4.multMat(
mat,
goog.vec.Mat4.makeRotateX(goog.vec.Mat4.create(), angle),
mat);
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained.
|
code » | ||||||||||||||||||
![]()
Rotate the given matrix by angle about the y axis. Equivalent to:
goog.vec.Mat4.multMat(
mat,
goog.vec.Mat4.makeRotateY(goog.vec.Mat4.create(), angle),
mat);
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained.
|
code » | ||||||||||||||||||
![]()
Rotate the given matrix by angle about the z axis. Equivalent to:
goog.vec.Mat4.multMat(
mat,
goog.vec.Mat4.makeRotateZ(goog.vec.Mat4.create(), angle),
mat);
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained.
|
code » | ||||||||||||||||||
![]()
Scales the given matrix by x,y,z. Equivalent to:
goog.vec.Mat4.multMat(
mat,
goog.vec.Mat4.makeScale(goog.vec.Mat4.create(), x, y, z),
mat);
|
code » | ||||||||||||||||||
![]()
Sets the specified column with the value from the supplied vector.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Sets the specified column with the supplied values.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Sets the columns of the matrix from the given vectors.
Arguments:
Returns: goog.vec.Mat4.AnyType
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.Mat4.AnyType
return mat so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Sets the diagonal values of the matrix from the given values.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Sets the element at the requested row and column.
|
code » | ||||||||||||||||||
![]()
Sets the matrix from the array of values stored in column major order.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Sets the matrix from the array of values stored in row major order.
Arguments:
Returns: goog.vec.Mat4.AnyType
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.Mat4.AnyType
return mat so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Sets the row values from the supplied vector.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Sets the row values from the supplied values.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Sets the rows of the matrix from the supplied vectors.
Arguments:
Returns: goog.vec.Mat4.AnyType
return mat so that operations can be
chained together.
|
code » | ||||||||||||||||||
![]()
Performs a per-component subtraction of the matrix mat0 and mat1,
storing the result into resultMat.
Arguments:
Returns: goog.vec.Mat4.AnyType
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.Vec4.AnyType
return euler so that operations can be
chained together.
|
code » | ||||||||||||||||||
Decomposes a matrix into the lookAt vectors eyePt, fwdVec and worldUpVec.
The matrix represents the modelview matrix of a camera. It is the inverse
of lookAt except for the output of the fwdVec instead of centerPt.
The centerPt itself cannot be recovered from a modelview matrix.
Arguments:
Returns: boolean
True if the method succeeds, false otherwise.
The method can only fail if the inverse of viewMatrix is not defined.
|
code » | ||||||||||||||||||
![]()
Translates the given matrix by x,y,z. Equvialent to:
goog.vec.Mat4.multMat(
mat,
goog.vec.Mat4.makeTranslate(goog.vec.Mat4.create(), x, y, z),
mat);
|
code » | ||||||||||||||||||
![]()
Transposes the given matrix mat storing the result into resultMat.
Arguments:
Returns: goog.vec.Mat4.AnyType
return resultMat so that operations can be
chained together.
|
code » |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » |