|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSystem.ValueType
Microsoft.Xna.Framework.Matrix
public final class Matrix
Defines a matrix.
Field Summary | |
---|---|
static Matrix |
Identity
Returns an instance of the identity matrix. |
float |
M11
Value at row 1 column 1 of the matrix. |
float |
M12
Value at row 1 column 2 of the matrix. |
float |
M13
Value at row 1 column 3 of the matrix. |
float |
M14
Value at row 1 column 4 of the matrix. |
float |
M21
Value at row 2 column 1 of the matrix. |
float |
M22
Value at row 2 column 2 of the matrix. |
float |
M23
Value at row 2 column 3 of the matrix. |
float |
M24
Value at row 2 column 4 of the matrix. |
float |
M31
Value at row 3 column 1 of the matrix. |
float |
M32
Value at row 3 column 2 of the matrix. |
float |
M33
Value at row 3 column 3 of the matrix. |
float |
M34
Value at row 3 column 4 of the matrix. |
float |
M41
Value at row 4 column 1 of the matrix. |
float |
M42
Value at row 4 column 2 of the matrix. |
float |
M43
Value at row 4 column 3 of the matrix. |
float |
M44
Value at row 4 column 4 of the matrix. |
Constructor Summary | |
---|---|
Matrix()
Initializes a new instance of Matrix. |
|
Matrix(float m11,
float m12,
float m13,
float m14,
float m21,
float m22,
float m23,
float m24,
float m31,
float m32,
float m33,
float m34,
float m41,
float m42,
float m43,
float m44)
Initializes a new instance of Matrix. |
Method Summary | |
---|---|
void |
Add(Matrix other)
Adds the current matrix to another matrix. |
static Matrix |
Add(Matrix matrix1,
Matrix matrix2)
Adds a matrix to another matrix. |
static void |
Add(Matrix matrix1,
Matrix matrix2,
Matrix result)
Adds a matrix to another matrix. |
static Matrix |
CreateBillboard(Vector3 objectPosition,
Vector3 cameraPosition,
Vector3 cameraUpVector,
Vector3 cameraForwardVector)
Creates a spherical billboard that rotates around a specified object position. |
static void |
CreateBillboard(Vector3 objectPosition,
Vector3 cameraPosition,
Vector3 cameraUpVector,
Vector3 cameraForwardVector,
Matrix result)
Creates a spherical billboard that rotates around a specified object position. |
static Matrix |
CreateConstrainedBillboard(Vector3 objectPosition,
Vector3 cameraPosition,
Vector3 rotateAxis,
Vector3 cameraForwardVector,
Vector3 objectForwardVector)
Creates a cylindrical billboard that rotates around a specified axis. |
static void |
CreateConstrainedBillboard(Vector3 objectPosition,
Vector3 cameraPosition,
Vector3 rotateAxis,
Vector3 cameraForwardVector,
Vector3 objectForwardVector,
Matrix result)
Creates a cylindrical billboard that rotates around a specified axis. |
static Matrix |
CreateFromAxisAngle(Vector3 axis,
float angle)
Creates a new Matrix that rotates around an arbitrary vector. |
static void |
CreateFromAxisAngle(Vector3 axis,
float angle,
Matrix result)
Creates a new Matrix that rotates around an arbitrary vector. |
static Matrix |
CreateFromQuaternion(Quaternion quaternion)
Creates a rotation Matrix from a Quaternion. |
static void |
CreateFromQuaternion(Quaternion quaternion,
Matrix result)
Creates a rotation Matrix from a Quaternion. |
static Matrix |
CreateFromYawPitchRoll(float yaw,
float pitch,
float roll)
Creates a new rotation matrix from a specified yaw, pitch, and roll. |
static void |
CreateFromYawPitchRoll(float yaw,
float pitch,
float roll,
Matrix result)
Creates a new rotation matrix from a specified yaw, pitch, and roll. |
static Matrix |
CreateLookAt(Vector3 cameraPosition,
Vector3 cameraTarget,
Vector3 cameraUpVector)
Creates a view matrix. |
static void |
CreateLookAt(Vector3 cameraPosition,
Vector3 cameraTarget,
Vector3 cameraUpVector,
Matrix result)
Creates a view matrix. |
static Matrix |
CreateOrthographic(float width,
float height,
float zNearPlane,
float zFarPlane)
Builds an orthogonal projection matrix. |
static void |
CreateOrthographic(float width,
float height,
float zNearPlane,
float zFarPlane,
Matrix result)
Builds an orthogonal projection matrix. |
static Matrix |
CreateOrthographicOffCenter(float left,
float right,
float bottom,
float top,
float zNearPlane,
float zFarPlane)
Builds a customized, orthogonal projection matrix. |
static void |
CreateOrthographicOffCenter(float left,
float right,
float bottom,
float top,
float zNearPlane,
float zFarPlane,
Matrix result)
Builds a customized, orthogonal projection matrix. |
static Matrix |
CreatePerspective(float width,
float height,
float nearPlaneDistance,
float farPlaneDistance)
Builds a perspective projection matrix and returns the result by value. |
static void |
CreatePerspective(float width,
float height,
float nearPlaneDistance,
float farPlaneDistance,
Matrix result)
Builds a perspective projection matrix and returns the result by reference. |
static Matrix |
CreatePerspectiveFieldOfView(float fieldOfView,
float aspectRatio,
float nearPlaneDistance,
float farPlaneDistance)
Builds a perspective projection matrix based on a field of view and returns by value. |
static void |
CreatePerspectiveFieldOfView(float fieldOfView,
float aspectRatio,
float nearPlaneDistance,
float farPlaneDistance,
Matrix result)
Builds a perspective projection matrix based on a field of view and returns by reference. |
static Matrix |
CreatePerspectiveOffCenter(float left,
float right,
float bottom,
float top,
float nearPlaneDistance,
float farPlaneDistance)
Builds a customized, perspective projection matrix. |
static void |
CreatePerspectiveOffCenter(float left,
float right,
float bottom,
float top,
float nearPlaneDistance,
float farPlaneDistance,
Matrix result)
Builds a customized, perspective projection matrix. |
static Matrix |
CreateReflection(Plane value)
Creates a Matrix that reflects the coordinate system about a specified Plane. |
static void |
CreateReflection(Plane value,
Matrix result)
Creates a Matrix that reflects the coordinate system about a specified Plane. |
static Matrix |
CreateRotationX(float radians)
Returns a matrix that can be used to rotate a set of vertices around the x-axis. |
static void |
CreateRotationX(float radians,
Matrix result)
Populates data into a user-specified matrix that can be used to rotate a set of vertices around the x-axis. |
static Matrix |
CreateRotationY(float radians)
Returns a matrix that can be used to rotate a set of vertices around the y-axis. |
static void |
CreateRotationY(float radians,
Matrix result)
Populates data into a user-specified matrix that can be used to rotate a set of vertices around the y-axis. |
static Matrix |
CreateRotationZ(float radians)
Returns a matrix that can be used to rotate a set of vertices around the z-axis. |
static void |
CreateRotationZ(float radians,
Matrix result)
Populates data into a user-specified matrix that can be used to rotate a set of vertices around the z-axis. |
static Matrix |
CreateScale(float scale)
Creates a scaling Matrix. |
static Matrix |
CreateScale(float xScale,
float yScale,
float zScale)
Creates a scaling Matrix. |
static void |
CreateScale(float xScale,
float yScale,
float zScale,
Matrix result)
Creates a scaling Matrix. |
static void |
CreateScale(float scale,
Matrix result)
Creates a scaling Matrix. |
static Matrix |
CreateScale(Vector3 scales)
Creates a scaling Matrix. |
static void |
CreateScale(Vector3 scales,
Matrix result)
Creates a scaling Matrix. |
static Matrix |
CreateShadow(Vector3 lightDirection,
Plane plane)
Creates a Matrix that flattens geometry into a specified Plane as if casting a shadow from a specified light source. |
static void |
CreateShadow(Vector3 lightDirection,
Plane plane,
Matrix result)
Fills in a Matrix to flatten geometry into a specified Plane as if casting a shadow from a specified light source. |
static Matrix |
CreateTranslation(float xPosition,
float yPosition,
float zPosition)
Creates a translation Matrix. |
static void |
CreateTranslation(float xPosition,
float yPosition,
float zPosition,
Matrix result)
Creates a translation Matrix. |
static Matrix |
CreateTranslation(Vector3 position)
Creates a translation Matrix. |
static void |
CreateTranslation(Vector3 position,
Matrix result)
Creates a translation Matrix. |
static Matrix |
CreateWorld(Vector3 position,
Vector3 forward,
Vector3 up)
Creates a world matrix with the specified parameters. |
static void |
CreateWorld(Vector3 position,
Vector3 forward,
Vector3 up,
Matrix result)
Creates a world matrix with the specified parameters. |
float |
Determinant()
Calculates the determinant of the matrix. |
void |
Divide(float divider)
Divides the components of the current matrix by a scalar. |
void |
Divide(Matrix other)
Divides the components of the current matrix by the corresponding components of another matrix. |
static Matrix |
Divide(Matrix matrix1,
float divider)
Divides the components of a matrix by a scalar. |
static void |
Divide(Matrix matrix1,
float divider,
Matrix result)
Divides the components of a matrix by a scalar. |
static Matrix |
Divide(Matrix matrix1,
Matrix matrix2)
Divides the components of a matrix by the corresponding components of another matrix. |
static void |
Divide(Matrix matrix1,
Matrix matrix2,
Matrix result)
Divides the components of a matrix by the corresponding components of another matrix. |
boolean |
Equals(Matrix other)
Determines whether the specified Object is equal to the Matrix. |
boolean |
equals(java.lang.Object obj)
Returns a value that indicates whether the current instance is equal to a specified object. |
Vector3 |
getBackward()
Gets the backward vector of the Matrix. |
Vector3 |
getDown()
Gets the down vector of the Matrix. |
Vector3 |
getForward()
Gets the forward vector of the Matrix. |
Vector3 |
getRight()
Gets the right vector of the Matrix. |
Vector3 |
getTranslation()
Gets the translation vector of the Matrix. |
Vector3 |
getUp()
Gets the up vector of this Matrix. |
int |
hashCode()
Gets the hash code of this object. |
static Matrix |
Invert(Matrix matrix)
Calculates the inverse of a matrix. |
static void |
Invert(Matrix matrix,
Matrix result)
Calculates the inverse of a matrix. |
Vector3 |
Left()
Gets the left vector of the Matrix. |
void |
Left(Vector3 value)
Sets the left vector of the Matrix. |
static Matrix |
Lerp(Matrix matrix1,
Matrix matrix2,
float amount)
Linearly interpolates between the corresponding values of two matrices. |
static void |
Lerp(Matrix matrix1,
Matrix matrix2,
float amount,
Matrix result)
Linearly interpolates between the corresponding values of two matrices. |
void |
Multiply(float scaleFactor)
Multiplies the current matrix by a scalar value. |
void |
Multiply(Matrix other)
Multiplies the current matrix by another matrix. |
static Matrix |
Multiply(Matrix matrix1,
float scaleFactor)
Multiplies a matrix by a scalar value. |
static void |
Multiply(Matrix matrix1,
float scaleFactor,
Matrix result)
Multiplies a matrix by a scalar value. |
static Matrix |
Multiply(Matrix matrix1,
Matrix matrix2)
Multiplies a matrix by another matrix. |
static void |
Multiply(Matrix matrix1,
Matrix matrix2,
Matrix result)
Multiplies a matrix by another matrix. |
void |
Negate()
Negates individual elements of the current matrix. |
static Matrix |
Negate(Matrix matrix)
Negates individual elements of a matrix. |
static void |
Negate(Matrix matrix,
Matrix result)
Negates individual elements of a matrix. |
void |
setBackward(Vector3 value)
Sets the backward vector of the Matrix. |
void |
setDown(Vector3 value)
Sets the down vector of the Matrix. |
void |
setForward(Vector3 value)
Sets the forward vector of the Matrix. |
void |
setRight(Vector3 value)
Sets the right vector of the Matrix. |
void |
setTranslation(Vector3 value)
Sets the translation vector of the Matrix. |
void |
setUp(Vector3 value)
Sets the up vector of this Matrix. |
void |
Subtract(Matrix other)
Subtracts the specified matrix from the current matrix. |
static Matrix |
Subtract(Matrix matrix1,
Matrix matrix2)
Subtracts matrices. |
static void |
Subtract(Matrix matrix1,
Matrix matrix2,
Matrix result)
Subtracts matrices. |
java.lang.String |
toString()
Retrieves a string representation of the current object. |
static Matrix |
Transform(Matrix value,
Quaternion rotation)
Transforms a Matrix by applying a Quaternion rotation. |
static void |
Transform(Matrix value,
Quaternion rotation,
Matrix result)
Transforms a Matrix by applying a Quaternion rotation. |
static Matrix |
Transpose(Matrix matrix)
Transposes the rows and columns of a matrix. |
static void |
Transpose(Matrix matrix,
Matrix result)
Transposes the rows and columns of a matrix. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Matrix Identity
public float M11
public float M12
public float M13
public float M14
public float M21
public float M22
public float M23
public float M24
public float M31
public float M32
public float M33
public float M34
public float M41
public float M42
public float M43
public float M44
Constructor Detail |
---|
public Matrix()
public Matrix(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44)
m11
- Value to initialize m11 to.m12
- Value to initialize m12 to.m13
- Value to initialize m13 to.m14
- Value to initialize m14 to.m21
- Value to initialize m21 to.m22
- Value to initialize m22 to.m23
- Value to initialize m23 to.m24
- Value to initialize m24 to.m31
- Value to initialize m31 to.m32
- Value to initialize m32 to.m33
- Value to initialize m33 to.m34
- Value to initialize m34 to.m41
- Value to initialize m41 to.m42
- Value to initialize m42 to.m43
- Value to initialize m43 to.m44
- Value to initialize m44 to.Method Detail |
---|
public Vector3 getBackward()
public void setBackward(Vector3 value)
public Vector3 getDown()
public void setDown(Vector3 value)
public Vector3 getForward()
public void setForward(Vector3 value)
public Vector3 Left()
public void Left(Vector3 value)
public Vector3 getRight()
public void setRight(Vector3 value)
public Vector3 getTranslation()
public void setTranslation(Vector3 value)
public Vector3 getUp()
public void setUp(Vector3 value)
public void Add(Matrix other)
other
- Source matrix.public static Matrix Add(Matrix matrix1, Matrix matrix2)
matrix1
- Source matrix.matrix2
- Source matrix.public static void Add(Matrix matrix1, Matrix matrix2, Matrix result)
matrix1
- Source matrix.matrix2
- Source matrix.result
- [OutAttribute] Resulting matrix.public static Matrix CreateBillboard(Vector3 objectPosition, Vector3 cameraPosition, Vector3 cameraUpVector, Vector3 cameraForwardVector)
objectPosition
- Position of the object the billboard will rotate around.cameraPosition
- Position of the camera.cameraUpVector
- The up vector of the camera.cameraForwardVector
- Optional forward vector of the camera.public static void CreateBillboard(Vector3 objectPosition, Vector3 cameraPosition, Vector3 cameraUpVector, Vector3 cameraForwardVector, Matrix result)
objectPosition
- Position of the object the billboard will rotate around.cameraPosition
- Position of the camera.cameraUpVector
- The up vector of the camera.cameraForwardVector
- Optional forward vector of the camera.result
- [OutAttribute] The created billboard matrix.public static Matrix CreateConstrainedBillboard(Vector3 objectPosition, Vector3 cameraPosition, Vector3 rotateAxis, Vector3 cameraForwardVector, Vector3 objectForwardVector)
objectPosition
- Position of the object the billboard will rotate around.cameraPosition
- Position of the camera.rotateAxis
- Axis to rotate the billboard around.cameraForwardVector
- Optional forward vector of the camera.objectForwardVector
- Optional forward vector of the object.public static void CreateConstrainedBillboard(Vector3 objectPosition, Vector3 cameraPosition, Vector3 rotateAxis, Vector3 cameraForwardVector, Vector3 objectForwardVector, Matrix result)
objectPosition
- Position of the object the billboard will rotate around.cameraPosition
- Position of the camera.rotateAxis
- Axis to rotate the billboard around.cameraForwardVector
- Optional forward vector of the camera.objectForwardVector
- Optional forward vector of the object.result
- [OutAttribute] The created billboard matrix.public static Matrix CreateFromAxisAngle(Vector3 axis, float angle)
axis
- The axis to rotate around.angle
- The angle to rotate around the vector.public static void CreateFromAxisAngle(Vector3 axis, float angle, Matrix result)
axis
- The axis to rotate around.angle
- The angle to rotate around the vector.result
- [OutAttribute] The created Matrix.public static Matrix CreateFromQuaternion(Quaternion quaternion)
quaternion
- Quaternion to create the Matrix from.public static void CreateFromQuaternion(Quaternion quaternion, Matrix result)
quaternion
- Quaternion to create the Matrix from.result
- [OutAttribute] The created Matrix.public static Matrix CreateFromYawPitchRoll(float yaw, float pitch, float roll)
yaw
- Angle of rotation, in radians, around the y-axis.pitch
- Angle of rotation, in radians, around the x-axis.roll
- Angle of rotation, in radians, around the z-axis.public static void CreateFromYawPitchRoll(float yaw, float pitch, float roll, Matrix result)
yaw
- Angle of rotation, in radians, around the y-axis.pitch
- Angle of rotation, in radians, around the x-axis.roll
- Angle of rotation, in radians, around the z-axis.result
- [OutAttribute] An existing matrix filled in to represent the specified yaw, pitch, and roll.public static Matrix CreateLookAt(Vector3 cameraPosition, Vector3 cameraTarget, Vector3 cameraUpVector)
cameraPosition
- The position of the camera.cameraTarget
- The target towards which the camera is pointing.cameraUpVector
- The direction that is "up" from the camera's point of view.public static void CreateLookAt(Vector3 cameraPosition, Vector3 cameraTarget, Vector3 cameraUpVector, Matrix result)
cameraPosition
- The position of the camera.cameraTarget
- The target towards which the camera is pointing.cameraUpVector
- The direction that is "up" from the camera's point of view.result
- [OutAttribute] The created view matrix.public static Matrix CreateOrthographic(float width, float height, float zNearPlane, float zFarPlane)
width
- Width of the view volume.height
- Height of the view volume.zNearPlane
- Minimum z-value of the view volume.zFarPlane
- Maximum z-value of the view volume.public static void CreateOrthographic(float width, float height, float zNearPlane, float zFarPlane, Matrix result)
width
- Width of the view volume.height
- Height of the view volume.zNearPlane
- Minimum z-value of the view volume.zFarPlane
- Maximum z-value of the view volume.result
- [OutAttribute] The projection matrix.public static Matrix CreateOrthographicOffCenter(float left, float right, float bottom, float top, float zNearPlane, float zFarPlane)
left
- Minimum x-value of the view volume.right
- Maximum x-value of the view volume.bottom
- Minimum y-value of the view volume.top
- Maximum y-value of the view volume.zNearPlane
- Minimum z-value of the view volume.zFarPlane
- Maximum z-value of the view volume.public static void CreateOrthographicOffCenter(float left, float right, float bottom, float top, float zNearPlane, float zFarPlane, Matrix result)
left
- Minimum x-value of the view volume.right
- Maximum x-value of the view volume.bottom
- Minimum y-value of the view volume.top
- Maximum y-value of the view volume.zNearPlane
- Minimum z-value of the view volume.zFarPlane
- Maximum z-value of the view volume.result
- [OutAttribute] The projection matrix.public static Matrix CreatePerspective(float width, float height, float nearPlaneDistance, float farPlaneDistance)
width
- Width of the view volume at the near view plane.height
- Height of the view volume at the near view plane.nearPlaneDistance
- Distance to the near view plane.farPlaneDistance
- Distance to the far view plane.public static void CreatePerspective(float width, float height, float nearPlaneDistance, float farPlaneDistance, Matrix result)
width
- Width of the view volume at the near view plane.height
- Height of the view volume at the near view plane.nearPlaneDistance
- Distance to the near view plane.farPlaneDistance
- Distance to the far view plane.result
- [OutAttribute] The projection matrix.public static Matrix CreatePerspectiveFieldOfView(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance)
fieldOfView
- Field of view in the y direction, in radians.aspectRatio
- Aspect ratio, defined as view space width divided by height. To match the aspect ratio of the viewport, the property AspectRatio.nearPlaneDistance
- Distance to the near view plane.farPlaneDistance
- Distance to the far view plane.public static void CreatePerspectiveFieldOfView(float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance, Matrix result)
fieldOfView
- Field of view in the y direction, in radians.aspectRatio
- Aspect ratio, defined as view space width divided by height. To match the aspect ratio of the viewport, the property AspectRatio.nearPlaneDistance
- Distance to the near view plane.farPlaneDistance
- Distance to the far view plane.result
- [OutAttribute] The perspective projection matrix.public static Matrix CreatePerspectiveOffCenter(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance)
left
- Minimum x-value of the view volume at the near view plane.right
- Maximum x-value of the view volume at the near view plane.bottom
- Minimum y-value of the view volume at the near view plane.top
- Maximum y-value of the view volume at the near view plane.nearPlaneDistance
- Distance to the near view plane.farPlaneDistance
- Distance to of the far view plane.public static void CreatePerspectiveOffCenter(float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance, Matrix result)
left
- Minimum x-value of the view volume at the near view plane.right
- Maximum x-value of the view volume at the near view plane.bottom
- Minimum y-value of the view volume at the near view plane.top
- Maximum y-value of the view volume at the near view plane.nearPlaneDistance
- Distance to the near view plane.farPlaneDistance
- Distance to of the far view plane.result
- [OutAttribute] The created projection matrix.public static Matrix CreateReflection(Plane value)
value
- The Plane about which to create a reflection.public static void CreateReflection(Plane value, Matrix result)
value
- The Plane about which to create a reflection.result
- [OutAttribute] A Matrix that creates the reflection.public static Matrix CreateRotationX(float radians)
radians
- The amount, in radians, in which to rotate around the x-axis. Note that you can use ToRadians to convert degrees to radians.public static void CreateRotationX(float radians, Matrix result)
radians
- The amount, in radians, in which to rotate around the x-axis. Note that you can use ToRadians to convert degrees to radians.result
- [OutAttribute] The matrix in which to place the calculated data.public static Matrix CreateRotationY(float radians)
radians
- The amount, in radians, in which to rotate around the y-axis. Note that you can use ToRadians to convert degrees to radians.public static void CreateRotationY(float radians, Matrix result)
radians
- The amount, in radians, in which to rotate around the y-axis. Note that you can use ToRadians to convert degrees to radians.result
- [OutAttribute] The matrix in which to place the calculated data.public static Matrix CreateRotationZ(float radians)
radians
- The amount, in radians, in which to rotate around the z-axis. Note that you can use ToRadians to convert degrees to radians.public static void CreateRotationZ(float radians, Matrix result)
radians
- The amount, in radians, in which to rotate around the z-axis. Note that you can use ToRadians to convert degrees to radians.Matrix
- [OutAttribute] The rotation matrix.public static Matrix CreateScale(Vector3 scales)
scales
- Amounts to scale by on the x, y, and z axes.public static Matrix CreateScale(float scale)
scale
- Amount to scale by.public static void CreateScale(Vector3 scales, Matrix result)
scales
- Amounts to scale by on the x, y, and z axes.result
- [OutAttribute] The created scaling Matrix.public static void CreateScale(float scale, Matrix result)
scale
- Value to scale by.result
- [OutAttribute] The created scaling Matrix.public static Matrix CreateScale(float xScale, float yScale, float zScale)
xScale
- Value to scale by on the x-axis.yScale
- Value to scale by on the y-axis.zScale
- Value to scale by on the z-axis.public static void CreateScale(float xScale, float yScale, float zScale, Matrix result)
xScale
- Value to scale by on the x-axis.yScale
- Value to scale by on the y-axis.zScale
- Value to scale by on the z-axis.result
- [OutAttribute] The created scaling Matrix.public static Matrix CreateShadow(Vector3 lightDirection, Plane plane)
lightDirection
- A Vector3 specifying the direction from which the light that will cast the shadow is coming.plane
- The Plane onto which the new matrix should flatten geometry so as to cast a shadow.public static void CreateShadow(Vector3 lightDirection, Plane plane, Matrix result)
lightDirection
- A Vector3 specifying the direction from which the light that will cast the shadow is coming.plane
- The Plane onto which the new matrix should flatten geometry so as to cast a shadow.result
- [OutAttribute] A Matrix that can be used to flatten geometry onto the specified plane from the specified direction.public static Matrix CreateTranslation(Vector3 position)
position
- Amounts to translate by on the x, y, and z axes.public static void CreateTranslation(Vector3 position, Matrix result)
position
- Amounts to translate by on the x, y, and z axes.result
- [OutAttribute] The created translation Matrix.public static Matrix CreateTranslation(float xPosition, float yPosition, float zPosition)
xPosition
- Value to translate by on the x-axis.yPosition
- Value to translate by on the y-axis.zPosition
- Value to translate by on the z-axis.public static void CreateTranslation(float xPosition, float yPosition, float zPosition, Matrix result)
xPosition
- Value to translate by on the x-axis.yPosition
- Value to translate by on the y-axis.zPosition
- Value to translate by on the z-axis.result
- [OutAttribute] The created translation Matrix.public static Matrix CreateWorld(Vector3 position, Vector3 forward, Vector3 up)
position
- Position of the object. This value is used in translation operations.forward
- Forward direction of the object.up
- Upward direction of the object; usually [0, 1, 0].public static void CreateWorld(Vector3 position, Vector3 forward, Vector3 up, Matrix result)
position
- Position of the object. This value is used in translation operations.forward
- Forward direction of the object.up
- Upward direction of the object; usually [0, 1, 0].result
- [OutAttribute] The created world matrix.public float Determinant()
public void Divide(Matrix other)
other
- The divisor.public static Matrix Divide(Matrix matrix1, Matrix matrix2)
matrix1
- Source matrix.matrix2
- The divisor.public void Divide(float divider)
divider
- The divisor.public static Matrix Divide(Matrix matrix1, float divider)
matrix1
- Source matrix.divider
- The divisor.public static void Divide(Matrix matrix1, float divider, Matrix result)
matrix1
- Source matrix.divider
- The divisor.result
- [OutAttribute] Result of the division.public static void Divide(Matrix matrix1, Matrix matrix2, Matrix result)
matrix1
- Source matrix.matrix2
- The divisor.result
- [OutAttribute] Result of the division.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object with which to make the comparison.
public boolean Equals(Matrix other)
Equals
in interface IEquatable<Matrix>
other
- The Object to compare with the current Matrix.
public int hashCode()
hashCode
in class java.lang.Object
public static Matrix Invert(Matrix matrix)
matrix
- Source matrix.public static void Invert(Matrix matrix, Matrix result)
matrix
- The source matrix;result
- [OutAttribute] The inverse of matrix. The same matrix can be used for both arguments.public static Matrix Lerp(Matrix matrix1, Matrix matrix2, float amount)
matrix1
- Source matrix.matrix2
- Source matrix.amount
- Interpolation value.public static void Lerp(Matrix matrix1, Matrix matrix2, float amount, Matrix result)
matrix1
- Source matrix.matrix2
- Source matrix.amount
- Interpolation value.result
- [OutAttribute] Resulting matrix.public void Multiply(Matrix other)
other
- Source matrix.public static Matrix Multiply(Matrix matrix1, Matrix matrix2)
matrix1
- Source matrix.matrix2
- Source matrix.public void Multiply(float scaleFactor)
scaleFactor
- Scalar value.public static Matrix Multiply(Matrix matrix1, float scaleFactor)
matrix1
- Source matrix.scaleFactor
- Scalar value.public static void Multiply(Matrix matrix1, Matrix matrix2, Matrix result)
matrix1
- Source matrix.matrix2
- Source matrix.result
- [OutAttribute] Result of the multiplication.public static void Multiply(Matrix matrix1, float scaleFactor, Matrix result)
matrix1
- Source matrix.scaleFactor
- Scalar value.result
- [OutAttribute] The result of the multiplication.public void Negate()
public static Matrix Negate(Matrix matrix)
matrix
- Source matrix.public static void Negate(Matrix matrix, Matrix result)
matrix
- Source matrix.result
- [OutAttribute] Negated matrix.public void Subtract(Matrix other)
other
- Source matrix.public static Matrix Subtract(Matrix matrix1, Matrix matrix2)
matrix1
- Source matrix.matrix2
- Source matrix.public static void Subtract(Matrix matrix1, Matrix matrix2, Matrix result)
matrix1
- Source matrix.matrix2
- Source matrix.result
- [OutAttribute] Result of the subtraction.public java.lang.String toString()
toString
in class java.lang.Object
public static Matrix Transform(Matrix value, Quaternion rotation)
value
- The Matrix to transform.rotation
- The rotation to apply, expressed as a Quaternion.public static void Transform(Matrix value, Quaternion rotation, Matrix result)
value
- The Matrix to transform.rotation
- The rotation to apply, expressed as a Quaternion.result
- [OutAttribute] An existing Matrix filled in with the result of the transform.public static Matrix Transpose(Matrix matrix)
matrix
- Source matrix.public static void Transpose(Matrix matrix, Matrix result)
matrix
- Source matrix.result
- [OutAttribute] Transposed matrix.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |