Otter
0.9.8.91
2d Game Development Framework based on SFML.Net
|
Struct for representing a Matrix. More...
Inherits IEquatable< Matrix >.
Public Member Functions | |
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) | |
bool | Decompose (out Vector3 scale, out Quaternion rotation, out Vector3 translation) |
float | Determinant () |
bool | Equals (Matrix other) |
override bool | Equals (object obj) |
override int | GetHashCode () |
override string | ToString () |
Static Public Member Functions | |
static float[] | ToFloatArray (Matrix mat) |
static Matrix | Add (Matrix matrix1, Matrix matrix2) |
static void | Add (ref Matrix matrix1, ref Matrix matrix2, out Matrix result) |
static Matrix | CreateBillboard (Vector3 objectPosition, Vector3 cameraPosition, Vector3 cameraUpVector, Nullable< Vector3 > cameraForwardVector) |
static void | CreateBillboard (ref Vector3 objectPosition, ref Vector3 cameraPosition, ref Vector3 cameraUpVector, Vector3?cameraForwardVector, out Matrix result) |
static Matrix | CreateConstrainedBillboard (Vector3 objectPosition, Vector3 cameraPosition, Vector3 rotateAxis, Nullable< Vector3 > cameraForwardVector, Nullable< Vector3 > objectForwardVector) |
static void | CreateConstrainedBillboard (ref Vector3 objectPosition, ref Vector3 cameraPosition, ref Vector3 rotateAxis, Vector3?cameraForwardVector, Vector3?objectForwardVector, out Matrix result) |
static Matrix | CreateFromAxisAngle (Vector3 axis, float angle) |
static void | CreateFromAxisAngle (ref Vector3 axis, float angle, out Matrix result) |
static Matrix | CreateFromQuaternion (Quaternion quaternion) |
static void | CreateFromQuaternion (ref Quaternion quaternion, out Matrix result) |
static Matrix | CreateFromYawPitchRoll (float yaw, float pitch, float roll) |
static void | CreateFromYawPitchRoll (float yaw, float pitch, float roll, out Matrix result) |
static Matrix | CreateLookAt (Vector3 cameraPosition, Vector3 cameraTarget, Vector3 cameraUpVector) |
static void | CreateLookAt (ref Vector3 cameraPosition, ref Vector3 cameraTarget, ref Vector3 cameraUpVector, out Matrix result) |
static Matrix | CreateOrthographic (float width, float height, float zNearPlane, float zFarPlane) |
static void | CreateOrthographic (float width, float height, float zNearPlane, float zFarPlane, out Matrix result) |
static Matrix | CreateOrthographicOffCenter (float left, float right, float bottom, float top, float zNearPlane, float zFarPlane) |
static void | CreateOrthographicOffCenter (float left, float right, float bottom, float top, float zNearPlane, float zFarPlane, out Matrix result) |
static Matrix | CreatePerspective (float width, float height, float nearPlaneDistance, float farPlaneDistance) |
static void | CreatePerspective (float width, float height, float nearPlaneDistance, float farPlaneDistance, out Matrix result) |
static Matrix | CreatePerspectiveFieldOfView (float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance) |
static void | CreatePerspectiveFieldOfView (float fieldOfView, float aspectRatio, float nearPlaneDistance, float farPlaneDistance, out Matrix result) |
static Matrix | CreatePerspectiveOffCenter (float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance) |
static void | CreatePerspectiveOffCenter (float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance, out Matrix result) |
static Matrix | CreateRotationX (float radians) |
static void | CreateRotationX (float radians, out Matrix result) |
static Matrix | CreateRotationY (float radians) |
static void | CreateRotationY (float radians, out Matrix result) |
static Matrix | CreateRotationZ (float radians) |
static void | CreateRotationZ (float radians, out Matrix result) |
static Matrix | CreateScale (float scale) |
static void | CreateScale (float scale, out Matrix result) |
static Matrix | CreateScale (float xScale, float yScale, float zScale) |
static void | CreateScale (float xScale, float yScale, float zScale, out Matrix result) |
static Matrix | CreateScale (Vector3 scales) |
static void | CreateScale (ref Vector3 scales, out Matrix result) |
static Matrix | CreateTranslation (float xPosition, float yPosition, float zPosition) |
static void | CreateTranslation (ref Vector3 position, out Matrix result) |
static Matrix | CreateTranslation (Vector3 position) |
static void | CreateTranslation (float xPosition, float yPosition, float zPosition, out Matrix result) |
static Matrix | CreateWorld (Vector3 position, Vector3 forward, Vector3 up) |
static void | CreateWorld (ref Vector3 position, ref Vector3 forward, ref Vector3 up, out Matrix result) |
static Matrix | Divide (Matrix matrix1, Matrix matrix2) |
static void | Divide (ref Matrix matrix1, ref Matrix matrix2, out Matrix result) |
static Matrix | Divide (Matrix matrix1, float divider) |
static void | Divide (ref Matrix matrix1, float divider, out Matrix result) |
static Matrix | Invert (Matrix matrix) |
static void | Invert (ref Matrix matrix, out Matrix result) |
static Matrix | Lerp (Matrix matrix1, Matrix matrix2, float amount) |
static void | Lerp (ref Matrix matrix1, ref Matrix matrix2, float amount, out Matrix result) |
static Matrix | Multiply (Matrix matrix1, Matrix matrix2) |
static void | Multiply (ref Matrix matrix1, ref Matrix matrix2, out Matrix result) |
static Matrix | Multiply (Matrix matrix1, float factor) |
static void | Multiply (ref Matrix matrix1, float factor, out Matrix result) |
static Matrix | Negate (Matrix matrix) |
static void | Negate (ref Matrix matrix, out Matrix result) |
static Matrix | operator+ (Matrix matrix1, Matrix matrix2) |
static Matrix | operator/ (Matrix matrix1, Matrix matrix2) |
static Matrix | operator/ (Matrix matrix, float divider) |
static bool | operator== (Matrix matrix1, Matrix matrix2) |
static bool | operator!= (Matrix matrix1, Matrix matrix2) |
static Matrix | operator* (Matrix matrix1, Matrix matrix2) |
static Matrix | operator* (Matrix matrix, float scaleFactor) |
static Matrix | operator- (Matrix matrix1, Matrix matrix2) |
static Matrix | operator- (Matrix matrix) |
static Matrix | Subtract (Matrix matrix1, Matrix matrix2) |
static void | Subtract (ref Matrix matrix1, ref Matrix matrix2, out Matrix result) |
static Matrix | Transpose (Matrix matrix) |
static void | Transpose (ref Matrix matrix, out Matrix result) |
Public Attributes | |
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 |
Properties | |
float | this[int index] [get, set] |
float | this[int row, int column] [get, set] |
Vector3 | Backward [get, set] |
Vector3 | Down [get, set] |
Vector3 | Forward [get, set] |
static Matrix | Identity [get] |
Vector3 | Left [get, set] |
Vector3 | Right [get, set] |
Vector3 | Translation [get, set] |
Vector3 | Up [get, set] |
Struct for representing a Matrix.