API Referenceglobal
Matrixclass
Represents a 4x4 matrix.
object→Matrix
Constructors1
Showing 1 constructors
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)
| Parameter | Type | Description |
|---|---|---|
| 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 | float | — |
No results match this filter.
Methods25
Showing 25 methods
public static Matrix CreateMatrix3D(float[] matrix)
| Parameter | Type | Description |
|---|---|---|
| matrix | float[] | — |
public static Matrix CreateObliqueProjection(Transform cameraTransform, Sandbox.Plane clipPlane, Matrix projectionMatrix)
Create a projection matrix. The matrix will be in the correct format for the engine, and will also be reverse z.
| Parameter | Type | Description |
|---|---|---|
| cameraTransform | Transform | — |
| clipPlane | Plane | — |
| projectionMatrix | Matrix | — |
public static Matrix CreateProjection(float zNear, float zFar, float fovX, float aspectRatio, System.Nullable`1<Vector4> clipSpace = null)
| Parameter | Type | Description |
|---|---|---|
| zNear | float | — |
| zFar | float | — |
| fovX | float | — |
| aspectRatio | float | — |
| clipSpace = null | Nullable<Vector4> | — |
public static Matrix CreateWorld(Vector3 position, Vector3 forward, Vector3 up)
| Parameter | Type | Description |
|---|---|---|
| position | Vector3 | — |
| forward | Vector3 | — |
| up | Vector3 | — |
public static Matrix Lerp(Matrix ma, Matrix mb, float frac)
Performs linear interpolation from one matrix to another.
| Parameter | Type | Description |
|---|---|---|
| ma | Matrix | — |
| mb | Matrix | — |
| frac | float | — |
public static Matrix Slerp(Matrix ma, Matrix mb, float frac)
Performs spherical interpolation from one matrix to another.
| Parameter | Type | Description |
|---|---|---|
| ma | Matrix | — |
| mb | Matrix | — |
| frac | float | — |
No results match this filter.
Properties18
Showing 18 properties
public float Matrix.M11 { get; set; }
Returns:
float—public float Matrix.M12 { get; set; }
Returns:
float—public float Matrix.M13 { get; set; }
Returns:
float—public float Matrix.M14 { get; set; }
Returns:
float—public float Matrix.M21 { get; set; }
Returns:
float—public float Matrix.M22 { get; set; }
Returns:
float—public float Matrix.M23 { get; set; }
Returns:
float—public float Matrix.M24 { get; set; }
Returns:
float—public float Matrix.M31 { get; set; }
Returns:
float—public float Matrix.M32 { get; set; }
Returns:
float—public float Matrix.M33 { get; set; }
Returns:
float—public float Matrix.M34 { get; set; }
Returns:
float—public float Matrix.M41 { get; set; }
Returns:
float—public float Matrix.M42 { get; set; }
Returns:
float—public float Matrix.M43 { get; set; }
Returns:
float—public float Matrix.M44 { get; set; }
Returns:
float—No results match this filter.