Synced
Vector2
Section titled “Vector2”
- Represents a mutable vector2 value with component-wise arithmetic semantics.
Required contracts
Section titled “Required contracts”API: scripting
Implements: System.IEquatable<InnoEngine.Mathematics.Vector2>
Inherits: System.ValueType
Project: Inno.Core.Mathematics
Scope: Runtime
Declaration
Section titled “Declaration”public struct InnoEngine.Mathematics.Vector2 : System.IEquatable<InnoEngine.Mathematics.Vector2>Members
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Constructors | Vector2.Constructor | Creates a vector from explicit component values. |
| Fields | Vector2.ONE | A value whose components are all one. |
| Fields | Vector2.UNIT_X | A unit value aligned with the x axis. |
| Fields | Vector2.UNIT_Y | A unit value aligned with the y axis. |
| Fields | Vector2.x | The horizontal or first component. |
| Fields | Vector2.y | The vertical or second component. |
| Fields | Vector2.ZERO | A value whose components are all zero. |
| Methods | Vector2.Angle | Calculates the unsigned angle in radians between two values. |
| Methods | Vector2.Dot | Calculates the scalar dot product of two values. |
| Methods | Vector2.Equals(InnoEngine.Mathematics.Vector2) | Determines whether this value and the supplied value represent the same logical state. |
| Methods | Vector2.Equals(System.Object) | Determines whether this value and the supplied value represent the same logical state. |
| Methods | Vector2.GetHashCode | Computes a hash code consistent with the implemented equality contract. |
| Methods | Vector2.Length | Calculates the Euclidean magnitude of this value. |
| Methods | Vector2.LengthSquared | Calculates the squared Euclidean magnitude without a square-root operation. |
| Methods | Vector2.Lerp | Interpolates linearly between two values without clamping the interpolation factor. |
| Methods | Vector2.Max | Selects the maximum value independently for each component. |
| Methods | Vector2.Min | Selects the minimum value independently for each component. |
| Methods | Vector2.NormalizeSafe | Returns a unit-length value while handling degenerate input according to the method contract. |
| Methods | Vector2.op_Addition | Adds the supplied values component by component. |
| Methods | Vector2.op_Division | Divides the supplied value by the scalar divisor component by component. |
| Methods | Vector2.op_Equality | Determines whether the supplied values are equal under the type’s equality tolerance. |
| Methods | Vector2.op_Implicit(InnoEngine.Mathematics.Vector2)~System.Numerics.Vector2 | Converts the supplied value to T:System.Numerics.Vector2. |
| Methods | Vector2.op_Implicit(System.Numerics.Vector2)~InnoEngine.Mathematics.Vector2 | Converts the supplied value to T:InnoEngine.Mathematics.Vector2. |
| Methods | Vector2.op_Inequality | Determines whether the supplied values differ under the type’s equality tolerance. |
| Methods | Vector2.op_Multiply(InnoEngine.Mathematics.Vector2,System.Single) | Multiplies the supplied values according to their algebraic contract. |
| Methods | Vector2.op_Multiply(System.Single,InnoEngine.Mathematics.Vector2) | Multiplies the supplied values according to their algebraic contract. |
| Methods | Vector2.op_Subtraction | Subtracts or negates the supplied value component by component. |
| Methods | Vector2.op_UnaryNegation | Subtracts or negates the supplied value component by component. |
| Methods | Vector2.Project | Projects the supplied value onto the requested dimensional space. |
| Methods | Vector2.Reflect | Reflects an incident value across the supplied normal. |
| Methods | Vector2.SignedAngle | Calculates the signed angle in radians from one value to another. |
| Methods | Vector2.ToString | Formats this value as a human-readable component list. |
| Methods | Vector2.Transform(InnoEngine.Mathematics.Vector2,InnoEngine.Mathematics.Matrix) | Transforms the supplied value by the requested transformation. |
| Methods | Vector2.Transform(InnoEngine.Mathematics.Vector2,InnoEngine.Mathematics.Quaternion) | Transforms the supplied value by the requested transformation. |
| Properties | Vector2.normalized | Gets a unit-length copy, or the zero value when normalization is undefined. |