Kanzi Framework  3.9.0
Kanzi Engine API
vector4.hpp File Reference

Classes

class  kanzi::Vector4
 Vector with 4 floating point components: (x, y, z, w). More...
 

Namespaces

 kanzi
 Easing functions that require external dependencies for calculation.
 

Functions

Vector4 kanzi::componentAbs (Vector4 v)
 Calculates component-wise absolute value for all elements and returns resulting vector. More...
 
Vector4 kanzi::componentAdd (Vector4 v, float scalar)
 Adds a value to all elements of a vector and returns the result. More...
 
bool kanzi::componentAllGreaterThan (Vector4 a, Vector4 b)
 Returns whether each component of the first vector is greater than the corresponding component of the second vector. More...
 
bool kanzi::componentAllGreaterThanOrEqual (Vector4 a, Vector4 b)
 Returns whether each component of the first vector is greater than or equal to the corresponding component of the second vector. More...
 
bool kanzi::componentAllLessThan (Vector4 a, Vector4 b)
 Returns whether each component of the first vector is less than the corresponding component of the second vector. More...
 
bool kanzi::componentAllLessThanOrEqual (Vector4 a, Vector4 b)
 Returns whether each component of the first vector is less than or equal to the corresponding component of the second vector. More...
 
Vector4 kanzi::componentCeil (Vector4 v)
 Calculates component-wise ceil value for all elements and returns resulting vector. More...
 
Vector4 kanzi::componentFloor (Vector4 v)
 Calculates component-wise floor value for all elements and returns resulting vector. More...
 
Vector4 kanzi::componentRound (Vector4 v)
 Calculates component-wise rounded value for all elements and returns resulting vector. More...
 
Vector4 kanzi::componentSqrt (Vector4 v)
 Calculates component-wise square root all elements and returns resulting vector. More...
 
Vector4 kanzi::componentSubtract (Vector4 v, float scalar)
 Subtracts a value from all elements of a vector and returns the result. More...
 
Vector4 kanzi::componentWiseDivide (Vector4 v1, Vector4 v2)
 Divides component-wise all vector elements and returns the resulting vector. More...
 
Vector4 kanzi::componentWiseMax (Vector4 v1, Vector4 v2)
 Calculates the component-wise maximum for all vector elements and returns the resulting vector. More...
 
Vector4 kanzi::componentWiseMin (Vector4 v1, Vector4 v2)
 Calculates the component-wise minimum for all vector elements and returns the resulting vector. More...
 
Vector4 kanzi::componentWiseMultiply (Vector4 v1, Vector4 v2)
 Multiplies component-wise all vector elements and returns the resulting vector. More...
 
Vector4 kanzi::componentWiseRemainder (Vector4 v1, Vector4 v2)
 Calculates component-wise the remainder for all vector elements and returns the resulting vector. More...
 
float kanzi::dotProduct (Vector4 v1, Vector4 v2)
 Calculates the dot product of two vectors. More...
 
Vector4 kanzi::linearTosRGB (const Vector4 &vec)
 Conversion to whole Vector4 from linear to sRGB. More...
 
bool kanzi::operator!= (Vector4 v1, Vector4 v2)
 Compares two vectors for inequality. More...
 
Vector4 kanzi::operator* (Vector4 v, float scalar)
 Multiplies all vector elements with a scalar and returns the resulting vector. More...
 
Vector4 kanzi::operator* (float scalar, Vector4 v)
 Multiplies all vector elements with a scalar and returns the resulting vector. More...
 
Vector4 kanzi::operator+ (float v1, Vector4 v2)
 Adds a scalar and a vector and returns the sum. More...
 
Vector4 kanzi::operator+ (Vector4 v1, float v2)
 Adds a vector and a scalar and returns the sum. More...
 
Vector4 kanzi::operator+ (Vector4 v1, Vector4 v2)
 Adds two vectors and returns the sum. More...
 
Vector4 kanzi::operator+ (Vector4 v)
 Unary plus, doesn't do anything and returns the resulting vector. More...
 
Vector4 kanzi::operator- (Vector4 v1, Vector4 v2)
 Subtracts two vectors and returns the difference. More...
 
Vector4 kanzi::operator- (Vector4 v)
 Negates all vector elements and returns the resulting vector. More...
 
Vector4 kanzi::operator/ (Vector4 v, float scalar)
 Divides all vector elements with a scalar and returns the resulting vector. More...
 
bool kanzi::operator== (Vector4 v1, Vector4 v2)
 Compares two vectors for equality. More...
 
Vector4 kanzi::sRGBToLinear (const Vector4 &vec)
 Conversion to whole Vector4 from sRGB to linear. More...