Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

float2x3

struct in Unity.Mathematics

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A 2x3 matrix of floats.

Static Properties

Property Description
zerofloat2x3 zero value.

Properties

Property Description
c0Column 0 of the matrix.
c1Column 1 of the matrix.
c2Column 2 of the matrix.
this[int]Returns the float2 element at a specified index.

Constructors

Constructor Description
float2x3Constructs a float2x3 matrix from three float2 vectors.

Public Methods

Method Description
EqualsReturns true if the float2x3 is equal to a given float2x3, false otherwise.
GetHashCodeReturns a hash code for the float2x3.
ToStringReturns a string representation of the float2x3.

Operators

Operator Description
float2x3Implicitly converts a single float value to a float2x3 matrix by assigning it to every component.
float2x3Explicitly converts a single bool value to a float2x3 matrix by converting it to float and assigning it to every component.
float2x3Explicitly converts a bool2x3 matrix to a float2x3 matrix by componentwise conversion.
float2x3Implicitly converts a single int value to a float2x3 matrix by converting it to float and assigning it to every component.
float2x3Implicitly converts a int2x3 matrix to a float2x3 matrix by componentwise conversion.
float2x3Implicitly converts a single uint value to a float2x3 matrix by converting it to float and assigning it to every component.
float2x3Implicitly converts a uint2x3 matrix to a float2x3 matrix by componentwise conversion.
float2x3Explicitly converts a single double value to a float2x3 matrix by converting it to float and assigning it to every component.
float2x3Explicitly converts a double2x3 matrix to a float2x3 matrix by componentwise conversion.
operator -Returns the result of a componentwise subtraction operation on two float2x3 matrices.
operator --Returns the result of a componentwise decrement operation on a float2x3 matrix.
operator !=Returns the result of a componentwise not equal operation on two float2x3 matrices.
operator *Returns the result of a componentwise multiplication operation on two float2x3 matrices.
operator /Returns the result of a componentwise division operation on two float2x3 matrices.
operator %Returns the result of a componentwise modulus operation on two float2x3 matrices.
operator +Returns the result of a componentwise addition operation on two float2x3 matrices.
operator +Returns the result of a componentwise unary plus operation on a float2x3 matrix.
operator ++Returns the result of a componentwise increment operation on a float2x3 matrix.
operator <Returns the result of a componentwise less than operation on two float2x3 matrices.
operator <=Returns the result of a componentwise less or equal operation on two float2x3 matrices.
operator ==Returns the result of a componentwise equality operation on two float2x3 matrices.
operator >Returns the result of a componentwise greater than operation on two float2x3 matrices.
operator >=Returns the result of a componentwise greater or equal operation on two float2x3 matrices.