Struct Matrix4x4
Assembly: UnityEngine.dll
Syntax
public struct Matrix4x4 : IEquatable<Matrix4x4>
Constructors
|
Improve this Doc
View Source
Matrix4x4(Vector4, Vector4, Vector4, Vector4)
Declaration
public Matrix4x4(Vector4 column0, Vector4 column1, Vector4 column2, Vector4 column3)
Parameters
Fields
|
Improve this Doc
View Source
m00
Declaration
Field Value
|
Improve this Doc
View Source
m01
Declaration
Field Value
|
Improve this Doc
View Source
m02
Declaration
Field Value
|
Improve this Doc
View Source
m03
Declaration
Field Value
|
Improve this Doc
View Source
m10
Declaration
Field Value
|
Improve this Doc
View Source
m11
Declaration
Field Value
|
Improve this Doc
View Source
m12
Declaration
Field Value
|
Improve this Doc
View Source
m13
Declaration
Field Value
|
Improve this Doc
View Source
m20
Declaration
Field Value
|
Improve this Doc
View Source
m21
Declaration
Field Value
|
Improve this Doc
View Source
m22
Declaration
Field Value
|
Improve this Doc
View Source
m23
Declaration
Field Value
|
Improve this Doc
View Source
m30
Declaration
Field Value
|
Improve this Doc
View Source
m31
Declaration
Field Value
|
Improve this Doc
View Source
m32
Declaration
Field Value
|
Improve this Doc
View Source
m33
Declaration
Field Value
Properties
|
Improve this Doc
View Source
decomposeProjection
Declaration
public FrustumPlanes decomposeProjection { get; }
Property Value
|
Improve this Doc
View Source
determinant
Declaration
public float determinant { get; }
Property Value
|
Improve this Doc
View Source
identity
Declaration
public static Matrix4x4 identity { get; }
Property Value
|
Improve this Doc
View Source
inverse
Declaration
public Matrix4x4 inverse { get; }
Property Value
|
Improve this Doc
View Source
isIdentity
Declaration
public bool isIdentity { get; }
Property Value
|
Improve this Doc
View Source
Item[Int32]
Declaration
public float this[int index] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
|
Improve this Doc
View Source
Item[Int32, Int32]
Declaration
public float this[int row, int column] { get; set; }
Parameters
Property Value
|
Improve this Doc
View Source
lossyScale
Declaration
public Vector3 lossyScale { get; }
Property Value
|
Improve this Doc
View Source
rotation
Declaration
public Quaternion rotation { get; }
Property Value
|
Improve this Doc
View Source
transpose
Declaration
public Matrix4x4 transpose { get; }
Property Value
|
Improve this Doc
View Source
zero
Declaration
public static Matrix4x4 zero { get; }
Property Value
Methods
|
Improve this Doc
View Source
Determinant(Matrix4x4)
Declaration
public static float Determinant(Matrix4x4 m)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
Object |
other |
|
Returns
Overrides
|
Improve this Doc
View Source
Equals(Matrix4x4)
Declaration
public bool Equals(Matrix4x4 other)
Parameters
Returns
Frustum(Single, Single, Single, Single, Single, Single)
Declaration
public static Matrix4x4 Frustum(float left, float right, float bottom, float top, float zNear, float zFar)
Parameters
Returns
|
Improve this Doc
View Source
Frustum(FrustumPlanes)
Declaration
public static Matrix4x4 Frustum(FrustumPlanes fp)
Parameters
Returns
|
Improve this Doc
View Source
GetColumn(Int32)
Declaration
public Vector4 GetColumn(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
GetRow(Int32)
Declaration
public Vector4 GetRow(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
Inverse(Matrix4x4)
Declaration
public static Matrix4x4 Inverse(Matrix4x4 m)
Parameters
Returns
LookAt(Vector3, Vector3, Vector3)
Declaration
public static Matrix4x4 LookAt(Vector3 from, Vector3 to, Vector3 up)
Parameters
Returns
|
Improve this Doc
View Source
MultiplyPoint(Vector3)
Declaration
public Vector3 MultiplyPoint(Vector3 point)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Returns
|
Improve this Doc
View Source
MultiplyPoint3x4(Vector3)
Declaration
public Vector3 MultiplyPoint3x4(Vector3 point)
Parameters
Type |
Name |
Description |
Vector3 |
point |
|
Returns
|
Improve this Doc
View Source
MultiplyVector(Vector3)
Declaration
public Vector3 MultiplyVector(Vector3 vector)
Parameters
Type |
Name |
Description |
Vector3 |
vector |
|
Returns
Ortho(Single, Single, Single, Single, Single, Single)
Declaration
public static Matrix4x4 Ortho(float left, float right, float bottom, float top, float zNear, float zFar)
Parameters
Returns
Perspective(Single, Single, Single, Single)
Declaration
public static Matrix4x4 Perspective(float fov, float aspect, float zNear, float zFar)
Parameters
Returns
|
Improve this Doc
View Source
Rotate(Quaternion)
Declaration
public static Matrix4x4 Rotate(Quaternion q)
Parameters
Returns
|
Improve this Doc
View Source
Scale(Vector3)
Declaration
public static Matrix4x4 Scale(Vector3 vector)
Parameters
Type |
Name |
Description |
Vector3 |
vector |
|
Returns
|
Improve this Doc
View Source
SetColumn(Int32, Vector4)
Declaration
public void SetColumn(int index, Vector4 column)
Parameters
|
Improve this Doc
View Source
SetRow(Int32, Vector4)
Declaration
public void SetRow(int index, Vector4 row)
Parameters
|
Improve this Doc
View Source
SetTRS(Vector3, Quaternion, Vector3)
Declaration
public void SetTRS(Vector3 pos, Quaternion q, Vector3 s)
Parameters
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Improve this Doc
View Source
ToString(String)
Declaration
public string ToString(string format)
Parameters
Type |
Name |
Description |
String |
format |
|
Returns
|
Improve this Doc
View Source
Declaration
public Plane TransformPlane(Plane plane)
Parameters
Type |
Name |
Description |
Plane |
plane |
|
Returns
|
Improve this Doc
View Source
Translate(Vector3)
Declaration
public static Matrix4x4 Translate(Vector3 vector)
Parameters
Type |
Name |
Description |
Vector3 |
vector |
|
Returns
Transpose(Matrix4x4)
Declaration
public static Matrix4x4 Transpose(Matrix4x4 m)
Parameters
Returns
TRS(Vector3, Quaternion, Vector3)
Declaration
public static Matrix4x4 TRS(Vector3 pos, Quaternion q, Vector3 s)
Parameters
Returns
ValidTRS()
Declaration
Returns
Operators
|
Improve this Doc
View Source
Equality(Matrix4x4, Matrix4x4)
Declaration
public static bool operator ==(Matrix4x4 lhs, Matrix4x4 rhs)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(Matrix4x4, Matrix4x4)
Declaration
public static bool operator !=(Matrix4x4 lhs, Matrix4x4 rhs)
Parameters
Returns
|
Improve this Doc
View Source
Multiply(Matrix4x4, Matrix4x4)
Declaration
public static Matrix4x4 operator *(Matrix4x4 lhs, Matrix4x4 rhs)
Parameters
Returns
|
Improve this Doc
View Source
Multiply(Matrix4x4, Vector4)
Declaration
public static Vector4 operator *(Matrix4x4 lhs, Vector4 vector)
Parameters
Returns
Implements
Extension Methods