Struct float4x4 | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct float4x4

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: Unity.Mathematics
    Syntax
    [Serializable]
    public struct float4x4 : IEquatable<float4x4>, IFormattable

    Constructors

    float4x4(Boolean)

    Constructs a float4x4 matrix from a single bool value by converting it to float and assigning it to every component.

    Declaration
    public float4x4(bool v)
    Parameters
    Type Name Description
    System.Boolean v

    float4x4(Double)

    Constructs a float4x4 matrix from a single double value by converting it to float and assigning it to every component.

    Declaration
    public float4x4(double v)
    Parameters
    Type Name Description
    System.Double v

    float4x4(Int32)

    Constructs a float4x4 matrix from a single int value by converting it to float and assigning it to every component.

    Declaration
    public float4x4(int v)
    Parameters
    Type Name Description
    System.Int32 v

    float4x4(Single)

    Constructs a float4x4 matrix from a single float value by assigning it to every component.

    Declaration
    public float4x4(float v)
    Parameters
    Type Name Description
    System.Single v

    float4x4(Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single)

    Constructs a float4x4 matrix from 16 float values given in row-major order.

    Declaration
    public float4x4(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
    Parameters
    Type Name Description
    System.Single m00
    System.Single m01
    System.Single m02
    System.Single m03
    System.Single m10
    System.Single m11
    System.Single m12
    System.Single m13
    System.Single m20
    System.Single m21
    System.Single m22
    System.Single m23
    System.Single m30
    System.Single m31
    System.Single m32
    System.Single m33

    float4x4(UInt32)

    Constructs a float4x4 matrix from a single uint value by converting it to float and assigning it to every component.

    Declaration
    public float4x4(uint v)
    Parameters
    Type Name Description
    System.UInt32 v

    float4x4(bool4x4)

    Constructs a float4x4 matrix from a bool4x4 matrix by componentwise conversion.

    Declaration
    public float4x4(bool4x4 v)
    Parameters
    Type Name Description
    bool4x4 v

    float4x4(double4x4)

    Constructs a float4x4 matrix from a double4x4 matrix by componentwise conversion.

    Declaration
    public float4x4(double4x4 v)
    Parameters
    Type Name Description
    double4x4 v

    float4x4(float3x3, float3)

    Constructs a float4x4 from a float3x3 rotation matrix and a float3 translation vector.

    Declaration
    public float4x4(float3x3 rotation, float3 translation)
    Parameters
    Type Name Description
    float3x3 rotation
    float3 translation

    float4x4(float4, float4, float4, float4)

    Constructs a float4x4 matrix from four float4 vectors.

    Declaration
    public float4x4(float4 c0, float4 c1, float4 c2, float4 c3)
    Parameters
    Type Name Description
    float4 c0
    float4 c1
    float4 c2
    float4 c3

    float4x4(int4x4)

    Constructs a float4x4 matrix from a int4x4 matrix by componentwise conversion.

    Declaration
    public float4x4(int4x4 v)
    Parameters
    Type Name Description
    int4x4 v

    float4x4(quaternion, float3)

    Constructs a float4x4 from a quaternion and a float3 translation vector.

    Declaration
    public float4x4(quaternion rotation, float3 translation)
    Parameters
    Type Name Description
    quaternion rotation
    float3 translation

    float4x4(RigidTransform)

    Constructs a float4x4 from a RigidTransform.

    Declaration
    public float4x4(RigidTransform transform)
    Parameters
    Type Name Description
    RigidTransform transform

    float4x4(uint4x4)

    Constructs a float4x4 matrix from a uint4x4 matrix by componentwise conversion.

    Declaration
    public float4x4(uint4x4 v)
    Parameters
    Type Name Description
    uint4x4 v

    Fields

    c0

    Declaration
    public float4 c0
    Field Value
    Type Description
    float4

    c1

    Declaration
    public float4 c1
    Field Value
    Type Description
    float4

    c2

    Declaration
    public float4 c2
    Field Value
    Type Description
    float4

    c3

    Declaration
    public float4 c3
    Field Value
    Type Description
    float4

    identity

    float4x4 identity transform.

    Declaration
    public static readonly float4x4 identity
    Field Value
    Type Description
    float4x4

    zero

    float4x4 zero value.

    Declaration
    public static readonly float4x4 zero
    Field Value
    Type Description
    float4x4

    Properties

    Item[Int32]

    Returns the float4 element at a specified index.

    Declaration
    public float4 this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    float4

    Methods

    AxisAngle(float3, Single)

    Returns a float4x4 matrix representing a rotation around a unit axis by an angle in radians. The rotation direction is clockwise when looking along the rotation axis towards the origin.

    Declaration
    public static float4x4 AxisAngle(float3 axis, float angle)
    Parameters
    Type Name Description
    float3 axis
    System.Single angle
    Returns
    Type Description
    float4x4

    Equals(Object)

    Returns true if the float4x4 is equal to a given float4x4, false otherwise.

    Declaration
    public override bool Equals(object o)
    Parameters
    Type Name Description
    System.Object o
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    Equals(float4x4)

    Returns true if the float4x4 is equal to a given float4x4, false otherwise.

    Declaration
    public bool Equals(float4x4 rhs)
    Parameters
    Type Name Description
    float4x4 rhs
    Returns
    Type Description
    System.Boolean
    Implements
    System.IEquatable<T>.Equals(T)

    Euler(Single, Single, Single, RotationOrder)

    Returns a float4x4 rotation matrix constructed by first performing 3 rotations around the principal axes in a given order. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. When the rotation order is known at compile time, it is recommended for performance reasons to use specific Euler rotation constructors such as EulerZXY(...).

    Declaration
    public static float4x4 Euler(float x, float y, float z, RotationOrder order = null)
    Parameters
    Type Name Description
    System.Single x

    The rotation angle around the x-axis in radians.

    System.Single y

    The rotation angle around the y-axis in radians.

    System.Single z

    The rotation angle around the z-axis in radians.

    RotationOrder order

    The order in which the rotations are applied.

    Returns
    Type Description
    float4x4

    Euler(float3, RotationOrder)

    Declaration
    public static float4x4 Euler(float3 xyz, RotationOrder order = null)
    Parameters
    Type Name Description
    float3 xyz
    RotationOrder order
    Returns
    Type Description
    float4x4

    EulerXYZ(Single, Single, Single)

    Returns a float4x4 rotation matrix constructed by first performing a rotation around the x-axis, then the y-axis and finally the z-axis. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin.

    Declaration
    public static float4x4 EulerXYZ(float x, float y, float z)
    Parameters
    Type Name Description
    System.Single x

    The rotation angle around the x-axis in radians.

    System.Single y

    The rotation angle around the y-axis in radians.

    System.Single z

    The rotation angle around the z-axis in radians.

    Returns
    Type Description
    float4x4

    EulerXYZ(float3)

    Returns a float4x4 rotation matrix constructed by first performing a rotation around the x-axis, then the y-axis and finally the z-axis. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin.

    Declaration
    public static float4x4 EulerXYZ(float3 xyz)
    Parameters
    Type Name Description
    float3 xyz

    A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians.

    Returns
    Type Description
    float4x4

    EulerXZY(Single, Single, Single)

    Returns a float4x4 rotation matrix constructed by first performing a rotation around the x-axis, then the z-axis and finally the y-axis. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin.

    Declaration
    public static float4x4 EulerXZY(float x, float y, float z)
    Parameters
    Type Name Description
    System.Single x

    The rotation angle around the x-axis in radians.

    System.Single y

    The rotation angle around the y-axis in radians.

    System.Single z

    The rotation angle around the z-axis in radians.

    Returns
    Type Description
    float4x4

    EulerXZY(float3)

    Returns a float4x4 rotation matrix constructed by first performing a rotation around the x-axis, then the z-axis and finally the y-axis. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin.

    Declaration
    public static float4x4 EulerXZY(float3 xyz)
    Parameters
    Type Name Description
    float3 xyz

    A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians.

    Returns
    Type Description
    float4x4

    EulerYXZ(Single, Single, Single)

    Returns a float4x4 rotation matrix constructed by first performing a rotation around the y-axis, then the x-axis and finally the z-axis. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin.

    Declaration
    public static float4x4 EulerYXZ(float x, float y, float z)
    Parameters
    Type Name Description
    System.Single x

    The rotation angle around the x-axis in radians.

    System.Single y

    The rotation angle around the y-axis in radians.

    System.Single z

    The rotation angle around the z-axis in radians.

    Returns
    Type Description
    float4x4

    EulerYXZ(float3)

    Returns a float4x4 rotation matrix constructed by first performing a rotation around the y-axis, then the x-axis and finally the z-axis. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin.

    Declaration
    public static float4x4 EulerYXZ(float3 xyz)
    Parameters
    Type Name Description
    float3 xyz

    A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians.

    Returns
    Type Description
    float4x4

    EulerYZX(Single, Single, Single)

    Returns a float4x4 rotation matrix constructed by first performing a rotation around the y-axis, then the z-axis and finally the x-axis. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin.

    Declaration
    public static float4x4 EulerYZX(float x, float y, float z)
    Parameters
    Type Name Description
    System.Single x

    The rotation angle around the x-axis in radians.

    System.Single y

    The rotation angle around the y-axis in radians.

    System.Single z

    The rotation angle around the z-axis in radians.

    Returns
    Type Description
    float4x4

    EulerYZX(float3)

    Returns a float4x4 rotation matrix constructed by first performing a rotation around the y-axis, then the z-axis and finally the x-axis. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin.

    Declaration
    public static float4x4 EulerYZX(float3 xyz)
    Parameters
    Type Name Description
    float3 xyz

    A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians.

    Returns
    Type Description
    float4x4

    EulerZXY(Single, Single, Single)

    Returns a float4x4 rotation matrix constructed by first performing a rotation around the z-axis, then the x-axis and finally the y-axis. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. This is the default order rotation order in Unity.

    Declaration
    public static float4x4 EulerZXY(float x, float y, float z)
    Parameters
    Type Name Description
    System.Single x

    The rotation angle around the x-axis in radians.

    System.Single y

    The rotation angle around the y-axis in radians.

    System.Single z

    The rotation angle around the z-axis in radians.

    Returns
    Type Description
    float4x4

    EulerZXY(float3)

    Returns a float4x4 rotation matrix constructed by first performing a rotation around the z-axis, then the x-axis and finally the y-axis. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin. This is the default order rotation order in Unity.

    Declaration
    public static float4x4 EulerZXY(float3 xyz)
    Parameters
    Type Name Description
    float3 xyz

    A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians.

    Returns
    Type Description
    float4x4

    EulerZYX(Single, Single, Single)

    Returns a float4x4 rotation matrix constructed by first performing a rotation around the z-axis, then the y-axis and finally the x-axis. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin.

    Declaration
    public static float4x4 EulerZYX(float x, float y, float z)
    Parameters
    Type Name Description
    System.Single x

    The rotation angle around the x-axis in radians.

    System.Single y

    The rotation angle around the y-axis in radians.

    System.Single z

    The rotation angle around the z-axis in radians.

    Returns
    Type Description
    float4x4

    EulerZYX(float3)

    Returns a float4x4 rotation matrix constructed by first performing a rotation around the z-axis, then the y-axis and finally the x-axis. All rotation angles are in radians and clockwise when looking along the rotation axis towards the origin.

    Declaration
    public static float4x4 EulerZYX(float3 xyz)
    Parameters
    Type Name Description
    float3 xyz

    A float3 vector containing the rotation angles around the x-, y- and z-axis measures in radians.

    Returns
    Type Description
    float4x4

    GetHashCode()

    Returns a hash code for the float4x4.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    LookAt(float3, float3, float3)

    Returns a float4x4 view matrix given an eye position, a target point and a unit length up vector. The up vector is assumed to be unit length, the eye and target points are assumed to be distinct and the vector between them is assumes to be collinear with the up vector. If these assumptions are not met use float4x4.LookRotationSafe instead.

    Declaration
    public static float4x4 LookAt(float3 eye, float3 target, float3 up)
    Parameters
    Type Name Description
    float3 eye
    float3 target
    float3 up
    Returns
    Type Description
    float4x4

    Ortho(Single, Single, Single, Single)

    Returns a float4x4 centered orthographic projection matrix.

    Declaration
    public static float4x4 Ortho(float width, float height, float near, float far)
    Parameters
    Type Name Description
    System.Single width

    The width of the view volume.

    System.Single height

    The height of the view volume.

    System.Single near

    The distance to the near plane.

    System.Single far

    The distance to the far plane.

    Returns
    Type Description
    float4x4

    OrthoOffCenter(Single, Single, Single, Single, Single, Single)

    Returns a float4x4 off-center orthographic projection matrix.

    Declaration
    public static float4x4 OrthoOffCenter(float left, float right, float bottom, float top, float near, float far)
    Parameters
    Type Name Description
    System.Single left

    The minimum x-coordinate of the view volume.

    System.Single right

    The maximum x-coordinate of the view volume.

    System.Single bottom

    The minimum y-coordinate of the view volume.

    System.Single top

    The minimum y-coordinate of the view volume.

    System.Single near

    The distance to the near plane.

    System.Single far

    The distance to the far plane.

    Returns
    Type Description
    float4x4

    PerspectiveFov(Single, Single, Single, Single)

    Returns a float4x4 perspective projection matrix based on field of view.

    Declaration
    public static float4x4 PerspectiveFov(float verticalFov, float aspect, float near, float far)
    Parameters
    Type Name Description
    System.Single verticalFov

    Vertical Field of view in radians.

    System.Single aspect

    X:Y aspect ratio.

    System.Single near

    Distance to near plane. Must be greater than zero.

    System.Single far

    Distance to far plane. Must be greater than zero.

    Returns
    Type Description
    float4x4

    PerspectiveOffCenter(Single, Single, Single, Single, Single, Single)

    Returns a float4x4 off-center perspective projection matrix.

    Declaration
    public static float4x4 PerspectiveOffCenter(float left, float right, float bottom, float top, float near, float far)
    Parameters
    Type Name Description
    System.Single left

    The x-coordinate of the left side of the clipping frustum at the near plane.

    System.Single right

    The x-coordinate of the right side of the clipping frustum at the near plane.

    System.Single bottom

    The y-coordinate of the bottom side of the clipping frustum at the near plane.

    System.Single top

    The y-coordinate of the top side of the clipping frustum at the near plane.

    System.Single near

    Distance to the near plane. Must be greater than zero.

    System.Single far

    Distance to the far plane. Must be greater than zero.

    Returns
    Type Description
    float4x4

    RotateX(Single)

    Returns a float4x4 matrix that rotates around the x-axis by a given number of radians.

    Declaration
    public static float4x4 RotateX(float angle)
    Parameters
    Type Name Description
    System.Single angle

    The clockwise rotation angle when looking along the x-axis towards the origin in radians.

    Returns
    Type Description
    float4x4

    RotateY(Single)

    Returns a float4x4 matrix that rotates around the y-axis by a given number of radians.

    Declaration
    public static float4x4 RotateY(float angle)
    Parameters
    Type Name Description
    System.Single angle

    The clockwise rotation angle when looking along the y-axis towards the origin in radians.

    Returns
    Type Description
    float4x4

    RotateZ(Single)

    Returns a float4x4 matrix that rotates around the z-axis by a given number of radians.

    Declaration
    public static float4x4 RotateZ(float angle)
    Parameters
    Type Name Description
    System.Single angle

    The clockwise rotation angle when looking along the z-axis towards the origin in radians.

    Returns
    Type Description
    float4x4

    Scale(Single)

    Returns a float4x4 scale matrix given 3 axis scales.

    Declaration
    public static float4x4 Scale(float s)
    Parameters
    Type Name Description
    System.Single s
    Returns
    Type Description
    float4x4

    Scale(Single, Single, Single)

    Returns a float4x4 scale matrix given a float3 vector containing the 3 axis scales.

    Declaration
    public static float4x4 Scale(float x, float y, float z)
    Parameters
    Type Name Description
    System.Single x
    System.Single y
    System.Single z
    Returns
    Type Description
    float4x4

    Scale(float3)

    Returns a float4x4 scale matrix given a float3 vector containing the 3 axis scales.

    Declaration
    public static float4x4 Scale(float3 scales)
    Parameters
    Type Name Description
    float3 scales
    Returns
    Type Description
    float4x4

    ToString()

    Returns a string representation of the float4x4.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    ToString(String, IFormatProvider)

    Returns a string representation of the float4x4 using a specified format and culture-specific format information.

    Declaration
    public string ToString(string format, IFormatProvider formatProvider)
    Parameters
    Type Name Description
    System.String format
    System.IFormatProvider formatProvider
    Returns
    Type Description
    System.String
    Implements
    System.IFormattable.ToString(System.String, System.IFormatProvider)

    Translate(float3)

    Returns a float4x4 translation matrix given a float3 translation vector.

    Declaration
    public static float4x4 Translate(float3 vector)
    Parameters
    Type Name Description
    float3 vector
    Returns
    Type Description
    float4x4

    Operators

    Addition(Single, float4x4)

    Returns the result of a componentwise addition operation on a float value and a float4x4 matrix.

    Declaration
    public static float4x4 operator +(float lhs, float4x4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4x4 rhs
    Returns
    Type Description
    float4x4

    Addition(float4x4, Single)

    Returns the result of a componentwise addition operation on a float4x4 matrix and a float value.

    Declaration
    public static float4x4 operator +(float4x4 lhs, float rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    System.Single rhs
    Returns
    Type Description
    float4x4

    Addition(float4x4, float4x4)

    Returns the result of a componentwise addition operation on two float4x4 matrices.

    Declaration
    public static float4x4 operator +(float4x4 lhs, float4x4 rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    float4x4 rhs
    Returns
    Type Description
    float4x4

    Decrement(float4x4)

    Returns the result of a componentwise decrement operation on a float4x4 matrix.

    Declaration
    public static float4x4 operator --(float4x4 val)
    Parameters
    Type Name Description
    float4x4 val
    Returns
    Type Description
    float4x4

    Division(Single, float4x4)

    Returns the result of a componentwise division operation on a float value and a float4x4 matrix.

    Declaration
    public static float4x4 operator /(float lhs, float4x4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4x4 rhs
    Returns
    Type Description
    float4x4

    Division(float4x4, Single)

    Returns the result of a componentwise division operation on a float4x4 matrix and a float value.

    Declaration
    public static float4x4 operator /(float4x4 lhs, float rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    System.Single rhs
    Returns
    Type Description
    float4x4

    Division(float4x4, float4x4)

    Returns the result of a componentwise division operation on two float4x4 matrices.

    Declaration
    public static float4x4 operator /(float4x4 lhs, float4x4 rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    float4x4 rhs
    Returns
    Type Description
    float4x4

    Equality(Single, float4x4)

    Returns the result of a componentwise equality operation on a float value and a float4x4 matrix.

    Declaration
    public static bool4x4 operator ==(float lhs, float4x4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4x4 rhs
    Returns
    Type Description
    bool4x4

    Equality(float4x4, Single)

    Returns the result of a componentwise equality operation on a float4x4 matrix and a float value.

    Declaration
    public static bool4x4 operator ==(float4x4 lhs, float rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    System.Single rhs
    Returns
    Type Description
    bool4x4

    Equality(float4x4, float4x4)

    Returns the result of a componentwise equality operation on two float4x4 matrices.

    Declaration
    public static bool4x4 operator ==(float4x4 lhs, float4x4 rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    float4x4 rhs
    Returns
    Type Description
    bool4x4

    Explicit(Boolean to float4x4)

    Explicitly converts a single bool value to a float4x4 matrix by converting it to float and assigning it to every component.

    Declaration
    public static explicit operator float4x4(bool v)
    Parameters
    Type Name Description
    System.Boolean v
    Returns
    Type Description
    float4x4

    Explicit(Double to float4x4)

    Explicitly converts a single double value to a float4x4 matrix by converting it to float and assigning it to every component.

    Declaration
    public static explicit operator float4x4(double v)
    Parameters
    Type Name Description
    System.Double v
    Returns
    Type Description
    float4x4

    Explicit(bool4x4 to float4x4)

    Explicitly converts a bool4x4 matrix to a float4x4 matrix by componentwise conversion.

    Declaration
    public static explicit operator float4x4(bool4x4 v)
    Parameters
    Type Name Description
    bool4x4 v
    Returns
    Type Description
    float4x4

    Explicit(double4x4 to float4x4)

    Explicitly converts a double4x4 matrix to a float4x4 matrix by componentwise conversion.

    Declaration
    public static explicit operator float4x4(double4x4 v)
    Parameters
    Type Name Description
    double4x4 v
    Returns
    Type Description
    float4x4

    GreaterThan(Single, float4x4)

    Returns the result of a componentwise greater than operation on a float value and a float4x4 matrix.

    Declaration
    public static bool4x4 operator>(float lhs, float4x4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4x4 rhs
    Returns
    Type Description
    bool4x4

    GreaterThan(float4x4, Single)

    Returns the result of a componentwise greater than operation on a float4x4 matrix and a float value.

    Declaration
    public static bool4x4 operator>(float4x4 lhs, float rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    System.Single rhs
    Returns
    Type Description
    bool4x4

    GreaterThan(float4x4, float4x4)

    Returns the result of a componentwise greater than operation on two float4x4 matrices.

    Declaration
    public static bool4x4 operator>(float4x4 lhs, float4x4 rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    float4x4 rhs
    Returns
    Type Description
    bool4x4

    GreaterThanOrEqual(Single, float4x4)

    Returns the result of a componentwise greater or equal operation on a float value and a float4x4 matrix.

    Declaration
    public static bool4x4 operator >=(float lhs, float4x4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4x4 rhs
    Returns
    Type Description
    bool4x4

    GreaterThanOrEqual(float4x4, Single)

    Returns the result of a componentwise greater or equal operation on a float4x4 matrix and a float value.

    Declaration
    public static bool4x4 operator >=(float4x4 lhs, float rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    System.Single rhs
    Returns
    Type Description
    bool4x4

    GreaterThanOrEqual(float4x4, float4x4)

    Returns the result of a componentwise greater or equal operation on two float4x4 matrices.

    Declaration
    public static bool4x4 operator >=(float4x4 lhs, float4x4 rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    float4x4 rhs
    Returns
    Type Description
    bool4x4

    Implicit(Matrix4x4 to float4x4)

    Declaration
    public static implicit operator float4x4(Matrix4x4 m)
    Parameters
    Type Name Description
    Matrix4x4 m
    Returns
    Type Description
    float4x4

    Implicit(Int32 to float4x4)

    Implicitly converts a single int value to a float4x4 matrix by converting it to float and assigning it to every component.

    Declaration
    public static implicit operator float4x4(int v)
    Parameters
    Type Name Description
    System.Int32 v
    Returns
    Type Description
    float4x4

    Implicit(Single to float4x4)

    Implicitly converts a single float value to a float4x4 matrix by assigning it to every component.

    Declaration
    public static implicit operator float4x4(float v)
    Parameters
    Type Name Description
    System.Single v
    Returns
    Type Description
    float4x4

    Implicit(UInt32 to float4x4)

    Implicitly converts a single uint value to a float4x4 matrix by converting it to float and assigning it to every component.

    Declaration
    public static implicit operator float4x4(uint v)
    Parameters
    Type Name Description
    System.UInt32 v
    Returns
    Type Description
    float4x4

    Implicit(float4x4 to Matrix4x4)

    Declaration
    public static implicit operator Matrix4x4(float4x4 m)
    Parameters
    Type Name Description
    float4x4 m
    Returns
    Type Description
    Matrix4x4

    Implicit(int4x4 to float4x4)

    Implicitly converts a int4x4 matrix to a float4x4 matrix by componentwise conversion.

    Declaration
    public static implicit operator float4x4(int4x4 v)
    Parameters
    Type Name Description
    int4x4 v
    Returns
    Type Description
    float4x4

    Implicit(uint4x4 to float4x4)

    Implicitly converts a uint4x4 matrix to a float4x4 matrix by componentwise conversion.

    Declaration
    public static implicit operator float4x4(uint4x4 v)
    Parameters
    Type Name Description
    uint4x4 v
    Returns
    Type Description
    float4x4

    Increment(float4x4)

    Returns the result of a componentwise increment operation on a float4x4 matrix.

    Declaration
    public static float4x4 operator ++(float4x4 val)
    Parameters
    Type Name Description
    float4x4 val
    Returns
    Type Description
    float4x4

    Inequality(Single, float4x4)

    Returns the result of a componentwise not equal operation on a float value and a float4x4 matrix.

    Declaration
    public static bool4x4 operator !=(float lhs, float4x4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4x4 rhs
    Returns
    Type Description
    bool4x4

    Inequality(float4x4, Single)

    Returns the result of a componentwise not equal operation on a float4x4 matrix and a float value.

    Declaration
    public static bool4x4 operator !=(float4x4 lhs, float rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    System.Single rhs
    Returns
    Type Description
    bool4x4

    Inequality(float4x4, float4x4)

    Returns the result of a componentwise not equal operation on two float4x4 matrices.

    Declaration
    public static bool4x4 operator !=(float4x4 lhs, float4x4 rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    float4x4 rhs
    Returns
    Type Description
    bool4x4

    LessThan(Single, float4x4)

    Returns the result of a componentwise less than operation on a float value and a float4x4 matrix.

    Declaration
    public static bool4x4 operator <(float lhs, float4x4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4x4 rhs
    Returns
    Type Description
    bool4x4

    LessThan(float4x4, Single)

    Returns the result of a componentwise less than operation on a float4x4 matrix and a float value.

    Declaration
    public static bool4x4 operator <(float4x4 lhs, float rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    System.Single rhs
    Returns
    Type Description
    bool4x4

    LessThan(float4x4, float4x4)

    Returns the result of a componentwise less than operation on two float4x4 matrices.

    Declaration
    public static bool4x4 operator <(float4x4 lhs, float4x4 rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    float4x4 rhs
    Returns
    Type Description
    bool4x4

    LessThanOrEqual(Single, float4x4)

    Returns the result of a componentwise less or equal operation on a float value and a float4x4 matrix.

    Declaration
    public static bool4x4 operator <=(float lhs, float4x4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4x4 rhs
    Returns
    Type Description
    bool4x4

    LessThanOrEqual(float4x4, Single)

    Returns the result of a componentwise less or equal operation on a float4x4 matrix and a float value.

    Declaration
    public static bool4x4 operator <=(float4x4 lhs, float rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    System.Single rhs
    Returns
    Type Description
    bool4x4

    LessThanOrEqual(float4x4, float4x4)

    Returns the result of a componentwise less or equal operation on two float4x4 matrices.

    Declaration
    public static bool4x4 operator <=(float4x4 lhs, float4x4 rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    float4x4 rhs
    Returns
    Type Description
    bool4x4

    Modulus(Single, float4x4)

    Returns the result of a componentwise modulus operation on a float value and a float4x4 matrix.

    Declaration
    public static float4x4 operator %(float lhs, float4x4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4x4 rhs
    Returns
    Type Description
    float4x4

    Modulus(float4x4, Single)

    Returns the result of a componentwise modulus operation on a float4x4 matrix and a float value.

    Declaration
    public static float4x4 operator %(float4x4 lhs, float rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    System.Single rhs
    Returns
    Type Description
    float4x4

    Modulus(float4x4, float4x4)

    Returns the result of a componentwise modulus operation on two float4x4 matrices.

    Declaration
    public static float4x4 operator %(float4x4 lhs, float4x4 rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    float4x4 rhs
    Returns
    Type Description
    float4x4

    Multiply(Single, float4x4)

    Returns the result of a componentwise multiplication operation on a float value and a float4x4 matrix.

    Declaration
    public static float4x4 operator *(float lhs, float4x4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4x4 rhs
    Returns
    Type Description
    float4x4

    Multiply(float4x4, Single)

    Returns the result of a componentwise multiplication operation on a float4x4 matrix and a float value.

    Declaration
    public static float4x4 operator *(float4x4 lhs, float rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    System.Single rhs
    Returns
    Type Description
    float4x4

    Multiply(float4x4, float4x4)

    Returns the result of a componentwise multiplication operation on two float4x4 matrices.

    Declaration
    public static float4x4 operator *(float4x4 lhs, float4x4 rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    float4x4 rhs
    Returns
    Type Description
    float4x4

    Subtraction(Single, float4x4)

    Returns the result of a componentwise subtraction operation on a float value and a float4x4 matrix.

    Declaration
    public static float4x4 operator -(float lhs, float4x4 rhs)
    Parameters
    Type Name Description
    System.Single lhs
    float4x4 rhs
    Returns
    Type Description
    float4x4

    Subtraction(float4x4, Single)

    Returns the result of a componentwise subtraction operation on a float4x4 matrix and a float value.

    Declaration
    public static float4x4 operator -(float4x4 lhs, float rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    System.Single rhs
    Returns
    Type Description
    float4x4

    Subtraction(float4x4, float4x4)

    Returns the result of a componentwise subtraction operation on two float4x4 matrices.

    Declaration
    public static float4x4 operator -(float4x4 lhs, float4x4 rhs)
    Parameters
    Type Name Description
    float4x4 lhs
    float4x4 rhs
    Returns
    Type Description
    float4x4

    UnaryNegation(float4x4)

    Returns the result of a componentwise unary minus operation on a float4x4 matrix.

    Declaration
    public static float4x4 operator -(float4x4 val)
    Parameters
    Type Name Description
    float4x4 val
    Returns
    Type Description
    float4x4

    UnaryPlus(float4x4)

    Returns the result of a componentwise unary plus operation on a float4x4 matrix.

    Declaration
    public static float4x4 operator +(float4x4 val)
    Parameters
    Type Name Description
    float4x4 val
    Returns
    Type Description
    float4x4
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023