Struct float3x3
A 3x3 matrix of floats.
Namespace: Unity.Mathematics
Syntax
public struct float3x3 : System.IEquatable<float3x3>, IFormattable
Constructors
Name | Description |
---|---|
float3x3(Boolean) | Constructs a float3x3 matrix from a single bool value by converting it to float and assigning it to every component. |
float3x3(Double) | Constructs a float3x3 matrix from a single double value by converting it to float and assigning it to every component. |
float3x3(Int32) | Constructs a float3x3 matrix from a single int value by converting it to float and assigning it to every component. |
float3x3(Single) | Constructs a float3x3 matrix from a single float value by assigning it to every component. |
float3x3(Single, Single, Single, Single, Single, Single, Single, Single, Single) | Constructs a float3x3 matrix from 9 float values given in row-major order. |
float3x3(UInt32) | Constructs a float3x3 matrix from a single uint value by converting it to float and assigning it to every component. |
float3x3(bool3x3) | Constructs a float3x3 matrix from a bool3x3 matrix by componentwise conversion. |
float3x3(double3x3) | Constructs a float3x3 matrix from a double3x3 matrix by componentwise conversion. |
float3x3(float3, float3, float3) | Constructs a float3x3 matrix from three float3 vectors. |
float3x3(float4x4) | Constructs a float3x3 from the upper left 3x3 of a float4x4. |
float3x3(int3x3) | Constructs a float3x3 matrix from a int3x3 matrix by componentwise conversion. |
float3x3(quaternion) | Constructs a float3x3 matrix from a unit quaternion. |
float3x3(uint3x3) | Constructs a float3x3 matrix from a uint3x3 matrix by componentwise conversion. |
Fields
Name | Description |
---|---|
c0 | Column 0 of the matrix. |
c1 | Column 1 of the matrix. |
c2 | Column 2 of the matrix. |
identity | float3x3 identity transform. |
zero | float3x3 zero value. |
Properties
Name | Description |
---|---|
Item[Int32] | Returns the float3 element at a specified index. |
Methods
Name | Description |
---|---|
AxisAngle(float3, Single) | Returns a float3x3 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. |
Equals(Object) | Returns true if the float3x3 is equal to a given float3x3, false otherwise. |
Equals(float3x3) | Returns true if the float3x3 is equal to a given float3x3, false otherwise. |
Euler(Single, Single, Single, math.RotationOrder) | Returns a float3x3 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(...). |
Euler(float3, math.RotationOrder) | Returns a float3x3 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(...). |
EulerXYZ(Single, Single, Single) | Returns a float3x3 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. |
EulerXYZ(float3) | Returns a float3x3 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. |
EulerXZY(Single, Single, Single) | Returns a float3x3 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. |
EulerXZY(float3) | Returns a float3x3 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. |
EulerYXZ(Single, Single, Single) | Returns a float3x3 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. |
EulerYXZ(float3) | Returns a float3x3 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. |
EulerYZX(Single, Single, Single) | Returns a float3x3 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. |
EulerYZX(float3) | Returns a float3x3 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. |
EulerZXY(Single, Single, Single) | Returns a float3x3 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. |
EulerZXY(float3) | Returns a float3x3 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. |
EulerZYX(Single, Single, Single) | Returns a float3x3 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. |
EulerZYX(float3) | Returns a float3x3 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. |
GetHashCode() | Returns a hash code for the float3x3. |
LookRotation(float3, float3) | Returns a float3x3 view rotation matrix given a unit length forward vector and a unit length up vector. The two input vectors are assumed to be unit length and not collinear. If these assumptions are not met use float3x3.LookRotationSafe instead. |
LookRotationSafe(float3, float3) | Returns a float3x3 view rotation matrix given a forward vector and an up vector. The two input vectors are not assumed to be unit length. If the magnitude of either of the vectors is so extreme that the calculation cannot be carried out reliably or the vectors are collinear, the identity will be returned instead. |
RotateX(Single) | Returns a float3x3 matrix that rotates around the x-axis by a given number of radians. |
RotateY(Single) | Returns a float3x3 matrix that rotates around the y-axis by a given number of radians. |
RotateZ(Single) | Returns a float3x3 matrix that rotates around the z-axis by a given number of radians. |
Scale(Single) | Returns a float3x3 matrix representing a uniform scaling of all axes by s. |
Scale(Single, Single, Single) | Returns a float3x3 matrix representing a non-uniform axis scaling by x, y and z. |
Scale(float3) | Returns a float3x3 matrix representing a non-uniform axis scaling by the components of the float3 vector v. |
ToString() | Returns a string representation of the float3x3. |
ToString(String, IFormatProvider) | Returns a string representation of the float3x3 using a specified format and culture-specific format information. |
Operators
Name | Description |
---|---|
Addition(Single, float3x3) | Returns the result of a componentwise addition operation on a float value and a float3x3 matrix. |
Addition(float3x3, Single) | Returns the result of a componentwise addition operation on a float3x3 matrix and a float value. |
Addition(float3x3, float3x3) | Returns the result of a componentwise addition operation on two float3x3 matrices. |
Decrement(float3x3) | Returns the result of a componentwise decrement operation on a float3x3 matrix. |
Division(Single, float3x3) | Returns the result of a componentwise division operation on a float value and a float3x3 matrix. |
Division(float3x3, Single) | Returns the result of a componentwise division operation on a float3x3 matrix and a float value. |
Division(float3x3, float3x3) | Returns the result of a componentwise division operation on two float3x3 matrices. |
Equality(Single, float3x3) | Returns the result of a componentwise equality operation on a float value and a float3x3 matrix. |
Equality(float3x3, Single) | Returns the result of a componentwise equality operation on a float3x3 matrix and a float value. |
Equality(float3x3, float3x3) | Returns the result of a componentwise equality operation on two float3x3 matrices. |
Explicit(Boolean to float3x3) | Explicitly converts a single bool value to a float3x3 matrix by converting it to float and assigning it to every component. |
Explicit(Double to float3x3) | Explicitly converts a single double value to a float3x3 matrix by converting it to float and assigning it to every component. |
Explicit(bool3x3 to float3x3) | Explicitly converts a bool3x3 matrix to a float3x3 matrix by componentwise conversion. |
Explicit(double3x3 to float3x3) | Explicitly converts a double3x3 matrix to a float3x3 matrix by componentwise conversion. |
Explicit(float4x4 to float3x3) | Converts a float4x4 to a float3x3. |
GreaterThan(Single, float3x3) | Returns the result of a componentwise greater than operation on a float value and a float3x3 matrix. |
GreaterThan(float3x3, Single) | Returns the result of a componentwise greater than operation on a float3x3 matrix and a float value. |
GreaterThan(float3x3, float3x3) | Returns the result of a componentwise greater than operation on two float3x3 matrices. |
GreaterThanOrEqual(Single, float3x3) | Returns the result of a componentwise greater or equal operation on a float value and a float3x3 matrix. |
GreaterThanOrEqual(float3x3, Single) | Returns the result of a componentwise greater or equal operation on a float3x3 matrix and a float value. |
GreaterThanOrEqual(float3x3, float3x3) | Returns the result of a componentwise greater or equal operation on two float3x3 matrices. |
Implicit(Int32 to float3x3) | Implicitly converts a single int value to a float3x3 matrix by converting it to float and assigning it to every component. |
Implicit(Single to float3x3) | Implicitly converts a single float value to a float3x3 matrix by assigning it to every component. |
Implicit(UInt32 to float3x3) | Implicitly converts a single uint value to a float3x3 matrix by converting it to float and assigning it to every component. |
Implicit(int3x3 to float3x3) | Implicitly converts a int3x3 matrix to a float3x3 matrix by componentwise conversion. |
Implicit(uint3x3 to float3x3) | Implicitly converts a uint3x3 matrix to a float3x3 matrix by componentwise conversion. |
Increment(float3x3) | Returns the result of a componentwise increment operation on a float3x3 matrix. |
Inequality(Single, float3x3) | Returns the result of a componentwise not equal operation on a float value and a float3x3 matrix. |
Inequality(float3x3, Single) | Returns the result of a componentwise not equal operation on a float3x3 matrix and a float value. |
Inequality(float3x3, float3x3) | Returns the result of a componentwise not equal operation on two float3x3 matrices. |
LessThan(Single, float3x3) | Returns the result of a componentwise less than operation on a float value and a float3x3 matrix. |
LessThan(float3x3, Single) | Returns the result of a componentwise less than operation on a float3x3 matrix and a float value. |
LessThan(float3x3, float3x3) | Returns the result of a componentwise less than operation on two float3x3 matrices. |
LessThanOrEqual(Single, float3x3) | Returns the result of a componentwise less or equal operation on a float value and a float3x3 matrix. |
LessThanOrEqual(float3x3, Single) | Returns the result of a componentwise less or equal operation on a float3x3 matrix and a float value. |
LessThanOrEqual(float3x3, float3x3) | Returns the result of a componentwise less or equal operation on two float3x3 matrices. |
Modulus(Single, float3x3) | Returns the result of a componentwise modulus operation on a float value and a float3x3 matrix. |
Modulus(float3x3, Single) | Returns the result of a componentwise modulus operation on a float3x3 matrix and a float value. |
Modulus(float3x3, float3x3) | Returns the result of a componentwise modulus operation on two float3x3 matrices. |
Multiply(Single, float3x3) | Returns the result of a componentwise multiplication operation on a float value and a float3x3 matrix. |
Multiply(float3x3, Single) | Returns the result of a componentwise multiplication operation on a float3x3 matrix and a float value. |
Multiply(float3x3, float3x3) | Returns the result of a componentwise multiplication operation on two float3x3 matrices. |
Subtraction(Single, float3x3) | Returns the result of a componentwise subtraction operation on a float value and a float3x3 matrix. |
Subtraction(float3x3, Single) | Returns the result of a componentwise subtraction operation on a float3x3 matrix and a float value. |
Subtraction(float3x3, float3x3) | Returns the result of a componentwise subtraction operation on two float3x3 matrices. |
UnaryNegation(float3x3) | Returns the result of a componentwise unary minus operation on a float3x3 matrix. |
UnaryPlus(float3x3) | Returns the result of a componentwise unary plus operation on a float3x3 matrix. |