vector4.hpp File Reference

Classes

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

Namespaces

 kanzi
 

Functions

Vector4 kanzi::componentAbs (Vector4 v)
 Calculates component wise absolute value for all elements and returns resulting 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::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)
 Does component wise multiply for all vector elements and returns the resulting vector. More...
 
Vector4 kanzi::componentWiseDivide (Vector4 v1, Vector4 v2)
 Does component wise divide for all vector elements and returns the resulting vector. More...
 
Vector4 kanzi::componentWiseRemainder (Vector4 v1, Vector4 v2)
 Does component wise remainder for all vector elements and returns the resulting vector. More...
 
Vector4 kanzi::componentAdd (Vector4 v, float scalar)
 Adds a value to all elements of a vector and returns the result. More...
 
Vector4 kanzi::componentSubtract (Vector4 v, float scalar)
 Subtracts a value from all elements of a vector and returns the result. More...
 
bool kanzi::componentAllLessThan (Vector4 a, Vector4 b)
 Returns true if 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 true if each component of the first vector is less than or equal to the corresponding component of the second vector. More...
 
bool kanzi::componentAllGreaterThan (Vector4 a, Vector4 b)
 Returns true if 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 true if each component of the first vector is greater than or equal to the corresponding component of the second vector. More...
 
Vector4 kanzi::operator+ (Vector4 v1, Vector4 v2)
 Adds two vectors and returns the sum. More...
 
Vector4 kanzi::operator- (Vector4 v1, Vector4 v2)
 Subtracts two vectors and returns the difference. 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/ (Vector4 v, float scalar)
 Divides all vector elements with a scalar and returns the resulting vector. More...
 
Vector4 kanzi::operator- (Vector4 v)
 Negates all vector elements and returns the resulting vector. More...
 
Vector4 kanzi::operator+ (Vector4 v)
 Unary plus, doesn't do anything and returns the resulting vector. More...
 
bool kanzi::operator== (Vector4 v1, Vector4 v2)
 Compares two vectors for equality. More...
 
bool kanzi::operator!= (Vector4 v1, Vector4 v2)
 Compares two vectors for inequality. More...
 
float kanzi::dotProduct (Vector4 v1, Vector4 v2)
 Calculates the dot product of two vectors. More...