Package-level declarations
Types
Boolean 2D vector
Boolean 3D vector
An interface representing a type that can be converted into a Vector4. This allows classes implementing this interface to define a custom transformation or mapping to a Vector4
instance, enabling compatibility with systems and operations that utilize 4-dimensional vectors.
Represents a basic geometric primitive in a 2D space.
Represents a basic geometric primitive in a 3D space.
Integer 2D vector, exclusively for integer calculations.
Integer 3D vector, exclusively for integer calculations.
Represents a linear type that supports basic arithmetic operations for objects of the same type. This interface enforces a linear structure that can be used to define custom mathematical types.
A 3x3 matrix with double precision
A 4x4 matrix with double precision
A 5x5 matrix with double precision
Parametric2D defines a two-dimensional parametric function.
Represents a three-dimensional parametric function.
Represents a parametrized function defined in a 4D space. Provides the means to compute a value of type R given four input parameters: u, v, w, and t, typically representing dimensions or coordinates in the 4D space.
A 2D point defined in the Polar coordinate system.
A 2D vector representation in Cartesian coordinates with methods for mathematical operations and conversions. Implements linear algebra functionalities and provides utility methods for creating and manipulating 2D vectors.
Double-precision 3D vector.
Properties
Functions
Samples a single point based on the provided t value from given 3D cubic Bézier curve.
Returns IntVector2 whose value is limited between min and max per vector component.
Returns IntVector3 whose value is limited between min and max per vector component.
Returns IntVector4 whose value is limited between min and max per vector component.
Performs a fused multiply-add operation, which computes (a * b) + c
with only one rounding step. This provides better precision compared to performing the operations separately.
Computes a fused multiply-add operation and sums the results of two multiplications. Specifically, it calculates (a1 * b1 + a0 * b0)
in a way that ensures higher precision.
Computes the dot product of two 3-dimensional vectors using fused multiply-add operations to enhance precision. The vectors are represented as pairs of coordinates, where the first vector's components are (a0, a1, a2)
and the second vector's components are (b0, b1, b2)
.
Computes the dot product of two 4-dimensional vectors using fused multiply-add operations for enhanced precision. The result is calculated as: (a0 * b0) + (a1 * b1) + (a2 * b2) + (a3 * b3)
using fused operations.
Computes the dot product of three 3-dimensional vectors, combined with fused-multiply-add (FMA) operations for increased precision by avoiding intermediate rounding errors.
Computes a fused multiply-add dot product operation across four sets of inputs. Each set performs multiplications, computes fused additions, and sums them into a single result, ensuring improved precision through the usage of fused multiply-add operations.
Computes a fused multiply-add operation for two pairs of values and a constant offset. This function calculates a0 * b0 + c
, then uses the result as the offset for a1 * b1
. The fma
operation ensures higher precision by performing the operations in a single rounding step.
Computes the dot product of three vector components combined with an additional constant term, using fused multiply-add operations for improved precision.
Computes the dot product of four (a, b) pairs with an additional constant value c
. This operation is performed using fused multiply-add operations for improved precision.
Linearly maps a value, which is given in the before domain to a value in the after domain.
Linearly maps a value, which is given in the before domain to a value in the after domain.
Linearly maps a value, which is given in the before domain to a value in the after domain
Computes a normalization factor based on the input values a
, b
, and c
. The factor is calculated as a power of 2, inversely proportional to the largest exponent of the input values, if it falls outside the range of -8, 8. Otherwise, the factor defaults to 1.0.
Computes a normalization factor based on the maximum exponent of the input values.
Similar to derivative but handles cases in which p0 and p1 coincide.
Similar to derivative but handles cases in which p0 and p1 or p2 and p3 coincide.
Smootherstep
Smoothstep
Smoothstep