Vector2Ext ClassVector2 extensions.
Inheritance Hierarchy
System.Object
UltimateXR.Extensions.Unity.Math.Vector2Ext
Namespace: UltimateXR.Extensions.Unity.Math
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static class Vector2Ext
The Vector2Ext type exposes the following members.
Properties
Name | Description | |
---|---|---|
NaN | Represents a NaN vector. |
Methods
Name | Description | |
---|---|---|
Abs | Computes the absolute value of each component in a vector. | |
Clamp | Clamps Vector2 values component by component. | |
Divide | Divides a Vector2 by another, checking for divisions by 0. Divisions by 0 have a result of 0. | |
FillNanWith | Replaces NaN component values with other valid values. | |
Inverse | returns a vector with all components containing 1/component, checking for divisions by 0. Divisions by 0 have a result of 0. | |
IsInfinity | Checks whether the given vector has any infinity component. | |
IsNaN | Checks whether the given vector has any NaN component. | |
IsValid | Checks whether the given vector contains valid data. | |
Multiply | Multiplies two Vector2 component by component. | |
Parse | Parses a Vector2 from a string. | |
ParseAsync | Tries to parse a Vector2 from a string, asynchronously. | |
ToVector2 | Transforms an array of floats to a Vector2 component by component. If there are not enough values to read, the remaining values are set to NaN. | |
TryParse | Tries to parse a Vector2 from a string. |