This is the documentation for Enlighten.
module Vectors
Functions
Name | Description |
|---|---|
Returns a vector with the Abs function applied to all 4 elements. | |
Returns true if all elements of a and b are within g_VecEpsilon of each other. | |
Parses a v128 from the given string. | |
Parses a v128 from the given string, ignoring the W-component and instead setting it to the given value. | |
Returns true if all of the 4 elements of v are finite. | |
Returns true if any of the 4 elements of v are NANs. | |
Linearly interpolated between the corresponding components of a and b. | |
Returns a vector where each element has the maximum value of the corresponding values in a and b NOTE - the Min3 template function will work with the v128 type as well. | |
Returns a vector where each element has the minimum value of the corresponding values in a and b NOTE - the Min3 template function will work with the v128 type as well. | |
Operator - (component-wise subtraction) | |
The unary - operator. Equivalent to (VZero() - v);. | |
Operator * (component-wise multiplication) | |
Inplace *. | |
Operator / (component-wise division) | |
Inplace /. | |
Operator + (component-wise addition) | |
The unary + operator (effectively a no-op) | |
Inplace +. | |
Inplace -. | |
Creates a GeoString representation of the vector (space-separated). | |
Creates a GeoString representation of the vector (space-separated). | |
Construct a v128 by broadcasting a float into all elements. | |
Construct a v128 by converting an integer to a float and broadcasting it into all elements. | |
Return ceil(v). | |
Compares all corresponding elements to see if a == b (exact equals). | |
Compares all corresponding elements to see if a >= b. | |
Compares all corresponding elements to see if a > b. | |
Tests all elements of v to see if they are finite or not. | |
Tests all elements of v to see if any of them are NANs. | |
Compares all corresponding elements to see if a <= b. | |
Compares all corresponding elements to see if a < b. | |
Compares all corresponding elements to see if a == b (exact equals). | |
Compares all corresponding elements to see if a >= b. | |
Compares all corresponding elements to see if a > b. | |
Compares all corresponding elements to see if a <= b. | |
Compares all corresponding elements to see if a < b. | |
Construct a v128 from 4 floats. Fairly slow. | |
Re-intreprets 4 ints as floats and construct a vector from them. | |
Cross the first 3 elements of each. | |
Cross the first 3 elements of each. | |
Returns the fractional part of each element of v. | |
Returns a mask with everything but the 4 sign bits set. | |
Returns a mask with just the 4 sign bits set. | |
Load a 4-float array from 16-byte aligned memory. |