Click or drag to resize

Matrix4x4 Structure

A structure encapsulating a 4x4 matrix.

Namespace:  Karamba.Geometry
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[SerializableAttribute]
public struct Matrix4x4 : IEquatable<Matrix4x4>

The Matrix4x4 type exposes the following members.

Constructors
  NameDescription
Public methodMatrix4x4(Matrix3x2)
Constructs a Matrix4x4 from the given Matrix3x2.
Public methodMatrix4x4(Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double)
Constructs a Matrix4x4 from the given components.
Top
Properties
  NameDescription
Public propertyStatic memberIdentity
Returns the multiplicative identity matrix.
Public propertyIsIdentity
Returns whether the matrix is the identity matrix.
Public propertyTranslation
Gets or sets the translation component of this matrix.
Top
Methods
  NameDescription
Public methodStatic memberAdd
Adds two matrices together.
Public methodStatic memberCreateBillboard
Creates a spherical billboard that rotates around a specified object position.
Public methodStatic memberCreateConstrainedBillboard
Creates a cylindrical billboard that rotates around a specified axis.
Public methodStatic memberCreateFromAxisAngle
Creates a matrix that rotates around an arbitrary vector.
Public methodStatic memberCreateFromQuaternion
Creates a rotation matrix from the given Quaternion rotation value.
Public methodStatic memberCreateFromYawPitchRoll
Creates a rotation matrix from the specified yaw, pitch, and roll.
Public methodStatic memberCreateLookAt
Creates a view matrix.
Public methodStatic memberCreateOrthographic
Creates an orthographic perspective matrix from the given view volume dimensions.
Public methodStatic memberCreateOrthographicOffCenter
Builds a customized, orthographic projection matrix.
Public methodStatic memberCreatePerspective
Creates a perspective projection matrix from the given view volume dimensions.
Public methodStatic memberCreatePerspectiveFieldOfView
Creates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances.
Public methodStatic memberCreatePerspectiveOffCenter
Creates a customized, perspective projection matrix.
Public methodStatic memberCreateRotationX(Double)
Creates a matrix for rotating points around the X-axis.
Public methodStatic memberCreateRotationX(Double, Vector3)
Creates a matrix for rotating points around the X-axis, from a center point.
Public methodStatic memberCreateRotationY(Double)
Creates a matrix for rotating points around the Y-axis.
Public methodStatic memberCreateRotationY(Double, Vector3)
Creates a matrix for rotating points around the Y-axis, from a center point.
Public methodStatic memberCreateRotationZ(Double)
Creates a matrix for rotating points around the Z-axis.
Public methodStatic memberCreateRotationZ(Double, Vector3)
Creates a matrix for rotating points around the Z-axis, from a center point.
Public methodStatic memberCreateScale(Double)
Creates a uniform scaling matrix that scales equally on each axis.
Public methodStatic memberCreateScale(Vector3)
Creates a scaling matrix.
Public methodStatic memberCreateScale(Double, Vector3)
Creates a uniform scaling matrix that scales equally on each axis with a center point.
Public methodStatic memberCreateScale(Vector3, Vector3)
Creates a scaling matrix with a center point.
Public methodStatic memberCreateScale(Double, Double, Double)
Creates a scaling matrix.
Public methodStatic memberCreateScale(Double, Double, Double, Vector3)
Creates a scaling matrix with a center point.
Public methodStatic memberCreateTranslation(Vector3)
Creates a translation matrix.
Public methodStatic memberCreateTranslation(Double, Double, Double)
Creates a translation matrix.
Public methodStatic memberCreateWorld
Creates a world matrix with the specified parameters.
Public methodEquals(Object)
Returns a boolean indicating whether the given Object is equal to this matrix instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Matrix4x4)
Returns a boolean indicating whether this matrix instance is equal to the other given matrix.
Public methodGetDeterminant
Calculates the determinant of the matrix.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberInvert
Attempts to calculate the inverse of the given matrix. If successful, result will contain the inverted matrix.
Public methodStatic memberLerp
Linearly interpolates between the corresponding values of two matrices.
Public methodStatic memberMultiply(Matrix4x4, Matrix4x4)
Multiplies a matrix by another matrix.
Public methodStatic memberMultiply(Matrix4x4, Double)
Multiplies a matrix by a scalar value.
Public methodStatic memberNegate
Returns a new matrix with the negated elements of the given matrix.
Public methodStatic memberSubtract
Subtracts the second matrix from the first.
Public methodToString
Returns a String representing this matrix instance.
(Overrides ValueTypeToString.)
Public methodStatic memberTransform
Transforms the given matrix by applying the given Quaternion rotation.
Public methodStatic memberTranspose
Transposes the rows and columns of a matrix.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two matrices together.
Public operatorStatic memberEquality
Returns a boolean indicating whether the given two matrices are equal.
Public operatorStatic memberInequality
Returns a boolean indicating whether the given two matrices are not equal.
Public operatorStatic memberMultiply(Matrix4x4, Matrix4x4)
Multiplies a matrix by another matrix.
Public operatorStatic memberMultiply(Matrix4x4, Double)
Multiplies a matrix by a scalar value.
Public operatorStatic memberSubtraction
Subtracts the second matrix from the first.
Public operatorStatic memberUnaryNegation
Returns a new matrix with the negated elements of the given matrix.
Top
Fields
  NameDescription
Public fieldM11
Value at row 1, column 1 of the matrix.
Public fieldM12
Value at row 1, column 2 of the matrix.
Public fieldM13
Value at row 1, column 3 of the matrix.
Public fieldM14
Value at row 1, column 4 of the matrix.
Public fieldM21
Value at row 2, column 1 of the matrix.
Public fieldM22
Value at row 2, column 2 of the matrix.
Public fieldM23
Value at row 2, column 3 of the matrix.
Public fieldM24
Value at row 2, column 4 of the matrix.
Public fieldM31
Value at row 3, column 1 of the matrix.
Public fieldM32
Value at row 3, column 2 of the matrix.
Public fieldM33
Value at row 3, column 3 of the matrix.
Public fieldM34
Value at row 3, column 4 of the matrix.
Public fieldM41
Value at row 4, column 1 of the matrix.
Public fieldM42
Value at row 4, column 2 of the matrix.
Public fieldM43
Value at row 4, column 3 of the matrix.
Public fieldM44
Value at row 4, column 4 of the matrix.
Top
See Also