Vector4Ext ClassVector4 extensions.
Inheritance Hierarchy
System.Object
UltimateXR.Extensions.Unity.Math.Vector4Ext
Namespace: UltimateXR.Extensions.Unity.Math
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static class Vector4Ext
The Vector4Ext 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 Vector4 values component by component. | |
Divide | Divides a Vector4 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 Vector4 component by component. | |
Parse | Parses a Vector4 from a string. | |
ParseAsync | Tries to parse a Vector4 from a string, asynchronously. | |
ToQuaternion | Converts a Vector4 to a Quaternion component by component. | |
ToVector4 | Transforms an array of floats to a Vector4 component by component. If there are not enough values to read, the remaining values are set to NaN. | |
TryParse | Tries to parse a Vector4 from a string. |