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

NameDescription
Public propertyStatic memberNaN Represents a NaN vector.

Methods

NameDescription
Public methodStatic memberAbs Computes the absolute value of each component in a vector.
Public methodStatic memberClamp Clamps Vector2 values component by component.
Public methodStatic memberDivide Divides a Vector2 by another, checking for divisions by 0. Divisions by 0 have a result of 0.
Public methodStatic memberFillNanWith Replaces NaN component values with other valid values.
Public methodStatic memberInverse returns a vector with all components containing 1/component, checking for divisions by 0. Divisions by 0 have a result of 0.
Public methodStatic memberIsInfinity Checks whether the given vector has any infinity component.
Public methodStatic memberIsNaN Checks whether the given vector has any NaN component.
Public methodStatic memberIsValid Checks whether the given vector contains valid data.
Public methodStatic memberMultiply Multiplies two Vector2 component by component.
Public methodStatic memberParse Parses a Vector2 from a string.
Public methodStatic memberParseAsync Tries to parse a Vector2 from a string, asynchronously.
Public methodStatic memberToVector2 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.
Public methodStatic memberTryParse Tries to parse a Vector2 from a string.

See Also

Reference

UltimateXR.Extensions.Unity.Math Namespace