Edytuj

Udostępnij za pośrednictwem


Matrix4 Struct

Definition

Represents a 4x4 Matrix

[System.Serializable]
public struct Matrix4 : IEquatable<OpenTK.Matrix4>
type Matrix4 = struct
Inheritance
Matrix4
Attributes
Implements

Constructors

Matrix4(Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single)

Constructs a new instance.

Matrix4(Vector4, Vector4, Vector4, Vector4)

Constructs a new instance.

Fields

Identity

The identity matrix

Row0

Top row of the matrix

Row1

2nd row of the matrix

Row2

3rd row of the matrix

Row3

Bottom row of the matrix

Properties

Column0

The first column of this matrix

Column1

The second column of this matrix

Column2

The third column of this matrix

Column3

The fourth column of this matrix

Determinant

The determinant of this matrix

M11

Gets or sets the value at row 1, column 1 of this instance.

M12

Gets or sets the value at row 1, column 2 of this instance.

M13

Gets or sets the value at row 1, column 3 of this instance.

M14

Gets or sets the value at row 1, column 4 of this instance.

M21

Gets or sets the value at row 2, column 1 of this instance.

M22

Gets or sets the value at row 2, column 2 of this instance.

M23

Gets or sets the value at row 2, column 3 of this instance.

M24

Gets or sets the value at row 2, column 4 of this instance.

M31

Gets or sets the value at row 3, column 1 of this instance.

M32

Gets or sets the value at row 3, column 2 of this instance.

M33

Gets or sets the value at row 3, column 3 of this instance.

M34

Gets or sets the value at row 3, column 4 of this instance.

M41

Gets or sets the value at row 4, column 1 of this instance.

M42

Gets or sets the value at row 4, column 3 of this instance.

M43

Gets or sets the value at row 4, column 3 of this instance.

M44

Gets or sets the value at row 4, column 4 of this instance.

Methods

CreateFromAxisAngle(Vector3, Single, Matrix4)
CreateFromAxisAngle(Vector3, Single)
CreateOrthographic(Single, Single, Single, Single, Matrix4)

Creates an orthographic projection matrix.

CreateOrthographic(Single, Single, Single, Single)
CreateOrthographicOffCenter(Single, Single, Single, Single, Single, Single, Matrix4)

Creates an orthographic projection matrix.

CreateOrthographicOffCenter(Single, Single, Single, Single, Single, Single)
CreatePerspectiveFieldOfView(Single, Single, Single, Single, Matrix4)

Creates a perspective projection matrix.

CreatePerspectiveFieldOfView(Single, Single, Single, Single)
CreatePerspectiveOffCenter(Single, Single, Single, Single, Single, Single, Matrix4)

Creates an perspective projection matrix.

CreatePerspectiveOffCenter(Single, Single, Single, Single, Single, Single)
CreateRotationX(Single, Matrix4)
CreateRotationX(Single)
CreateRotationY(Single, Matrix4)
CreateRotationY(Single)
CreateRotationZ(Single, Matrix4)
CreateRotationZ(Single)
CreateTranslation(Single, Single, Single, Matrix4)

Creates a translation matrix.

CreateTranslation(Single, Single, Single)
CreateTranslation(Vector3, Matrix4)

Creates a translation matrix.

CreateTranslation(Vector3)
Equals(Matrix4)

Indicates whether the current matrix is equal to another matrix.

Equals(Object)

Indicates whether this instance and a specified object are equal.

Frustum(Single, Single, Single, Single, Single, Single)
GetHashCode()

Returns the hashcode for this instance.

Invert()
Invert(Matrix4)
Invert(Matrix4)
LookAt(Single, Single, Single, Single, Single, Single, Single, Single, Single)
LookAt(Vector3, Vector3, Vector3)
Mult(Matrix4, Matrix4, Matrix4)

Multiplies two instances.

Mult(Matrix4, Matrix4)
Perspective(Single, Single, Single, Single)
Rotate(Quaternion)
Rotate(Vector3, Single)
RotateX(Single)
RotateY(Single)
RotateZ(Single)
Scale(Single, Single, Single)
Scale(Single)
Scale(Vector3)
ToString()

Returns a System.String that represents the current Matrix44.

Translation(Single, Single, Single)
Translation(Vector3)
Transpose()

Calculates the transpose of this instance.

Transpose(Matrix4, Matrix4)

Calculate the transpose of the given matrix

Transpose(Matrix4)

Operators

Equality(Matrix4, Matrix4)
Inequality(Matrix4, Matrix4)
Multiply(Matrix4, Matrix4)

Applies to