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

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 Vector4 values component by component.
Public methodStatic memberDivide Divides a Vector4 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 Vector4 component by component.
Public methodStatic memberParse Parses a Vector4 from a string.
Public methodStatic memberParseAsync Tries to parse a Vector4 from a string, asynchronously.
Public methodStatic memberToQuaternion Converts a Vector4 to a Quaternion component by component.
Public methodStatic memberToVector4 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.
Public methodStatic memberTryParse Tries to parse a Vector4 from a string.

See Also

Reference

UltimateXR.Extensions.Unity.Math Namespace