Constructors
Functions
Checks vector components for equality (using '==' operator). For better numeric stability consider using isFuzzyEqual.
Checks vector components for equality using com.lehaine.littlekt.math.isFuzzyEqual, that is all components must have a difference less or equal eps.
Checks vector components for equality using com.lehaine.littlekt.math.isFuzzyEqual, that is all components must have a difference less or equal eps.
Checks vector components for equality using com.lehaine.littlekt.math.isFuzzyEqual, that is all components must have a difference less or equal eps.
Multiplies this vector as a quaternion with another in the form of this * other
.
Multiplies this vector as a quaternion with another in the form of other * this
.
Transforms the given vector using this quaternion and outputs the result.
Properties
Extensions
Packs the color components into a 32-bit integer with the format ABGR and then converts it to a float. Alpha is compressed from 0-255 to use only even numbers between 0-254 to avoid using float bits in the NaN range. Converting a color to a float and back can be lossy for alpha.