vector3.hpp File Reference

Classes

class  kanzi::Vector3
 Vector with 3 floating point components: (x, y, z). More...
 

Namespaces

 kanzi
 

Functions

Vector3 kanzi::componentAbs (Vector3 v)
 Calculates component wise absolute value for all elements and returns resulting vector. More...
 
Vector3 kanzi::componentCeil (Vector3 v)
 Calculates component wise ceil value for all elements and returns resulting vector. More...
 
Vector3 kanzi::componentFloor (Vector3 v)
 Calculates component wise floor value for all elements and returns resulting vector. More...
 
Vector3 kanzi::componentRound (Vector3 v)
 Calculates component wise rounded value for all elements and returns resulting vector. More...
 
Vector3 kanzi::componentSqrt (Vector3 v)
 Calculates component wise square root all elements and returns resulting vector. More...
 
Vector3 kanzi::componentWiseMax (Vector3 v1, Vector3 v2)
 Calculates the component wise maximum for all vector elements and returns the resulting vector. More...
 
Vector3 kanzi::componentWiseMin (Vector3 v1, Vector3 v2)
 Calculates the component wise minimum for all vector elements and returns the resulting vector. More...
 
Vector3 kanzi::componentWiseMultiply (Vector3 v1, Vector3 v2)
 Does component wise multiply for all vector elements and returns the resulting vector. More...
 
Vector3 kanzi::componentWiseDivide (Vector3 v1, Vector3 v2)
 Does component wise divide for all vector elements and returns the resulting vector. More...
 
Vector3 kanzi::componentWiseRemainder (Vector3 v1, Vector3 v2)
 Does component wise remainder for all vector elements and returns the resulting vector. More...
 
Vector3 kanzi::componentAdd (Vector3 v, float scalar)
 Adds a value to all elements of a vector and returns the result. More...
 
Vector3 kanzi::componentSubtract (Vector3 v, float scalar)
 Subtracts a value from all elements of a vector and returns the result. More...
 
bool kanzi::componentAllLessThan (Vector3 a, Vector3 b)
 Returns true if each component of the first vector is less than the corresponding component of the second vector. More...
 
bool kanzi::componentAllLessThanOrEqual (Vector3 a, Vector3 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 (Vector3 a, Vector3 b)
 Returns true if each component of the first vector is greater than the corresponding component of the second vector. More...
 
bool kanzi::componentAllGreaterThanOrEqual (Vector3 a, Vector3 b)
 Returns true if each component of the first vector is greater than or equal to the corresponding component of the second vector. More...
 
Vector3 kanzi::operator+ (Vector3 v1, Vector3 v2)
 Adds two vectors and returns the sum. More...
 
Vector3 kanzi::operator- (Vector3 v1, Vector3 v2)
 Subtracts two vectors and returns the difference. More...
 
Vector3 kanzi::operator* (Vector3 v, float scalar)
 Multiplies all vector elements with a scalar and returns the resulting vector. More...
 
Vector3 kanzi::operator* (float scalar, Vector3 v)
 Multiplies all vector elements with a scalar and returns the resulting vector. More...
 
Vector3 kanzi::operator/ (Vector3 v, float scalar)
 Divides all vector elements with a scalar and returns the resulting vector. More...
 
Vector3 kanzi::operator- (Vector3 v)
 Negates all vector elements and returns the resulting vector. More...
 
Vector3 kanzi::operator+ (Vector3 v)
 Unary plus, doesn't do anything and returns the resulting vector. More...
 
bool kanzi::operator== (Vector3 v1, Vector3 v2)
 Compares two vectors for equality. More...
 
bool kanzi::operator!= (Vector3 v1, Vector3 v2)
 Compares two vectors for inequality. More...
 
float kanzi::dotProduct (Vector3 v1, Vector3 v2)
 Calculates the dot product of two vectors. More...
 
Vector3 kanzi::crossProduct (Vector3 v1, Vector3 v2)
 Calculates the cross product of two vectors. More...