struct
Length2
Remarks
X and First read from and write to the same location in memory, as do Y and Second. This makes them interchangable and subject to user preference or context.
Fields
| First | The first component of this Length Pair. |
| Second | The second component of this Length Pair. |
| X | The X-axis component of this 2D Length. |
| Y | The Y-axis component of this 2D Length. |
Static Fields
| One | |
| Zero |
Properties
| Item[int] | Access each component by |
| Percent |
|
| Raw | The numeric values associated with this Length2. |
| Type | The type of each Length. Tells the system how to interpret Raw per component. |
| Value |
|
Static Methods
| FixedValue (2 overloads) | |
| Percentage (2 overloads) |
Constructors
| Length2(Length, Length) | Constructs a new Length2. |
Operators
| Division(Length2, float) | Division operator, divides |
| Division(Length2, Vector2) | Division operator, divides |
| Division(float, Length2) | Division operator, divides |
| Division(Vector2, Length2) | Division operator, divides |
| Implicit(Length to Length2) | Constructs a new Length2 and assigns each component to |
| Implicit(Vector2 to Length2) | |
| Multiply(Length2, float) | Multiplication operator, scales |
| Multiply(Length2, Vector2) | Multiplication operator, scales |
| Multiply(float, Length2) | Multiplication operator, scales |
| Multiply(Vector2, Length2) | Multiplication operator, scales |
| UnaryNegation(Length2) | Numeric negation operator, multiplies |