Kanzi  3.9.7
Kanzi Engine API
vector3.hpp File Reference

Classes

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

Namespaces

 kanzi
 Easing functions that require external dependencies for calculation.
 

Functions

Vector3 kanzi::componentAbs (Vector3 v)
 Calculates component-wise absolute value for all elements and returns resulting vector. More...
 
Vector3 kanzi::componentAdd (Vector3 v, float scalar)
 Adds a value to all elements of a vector and returns the result. More...
 
bool kanzi::componentAllGreaterThan (Vector3 a, Vector3 b)
 Returns whether 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 whether each component of the first vector is greater than or equal to the corresponding component of the second vector. More...
 
bool kanzi::componentAllLessThan (Vector3 a, Vector3 b)
 Returns whether 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 whether each component of the first vector is less than or equal to the corresponding component of the second 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::componentSubtract (Vector3 v, float scalar)
 Subtracts a value from all elements of a vector and returns the result. More...
 
Vector3 kanzi::componentWiseDivide (Vector3 v1, Vector3 v2)
 Divides component-wise all vector elements and returns the 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)
 Multiplies component-wise all vector elements and returns the resulting vector. More...
 
Vector3 kanzi::componentWiseRemainder (Vector3 v1, Vector3 v2)
 Calculates component-wise the remainder for all vector elements and returns the resulting vector. More...
 
Vector3 kanzi::crossProduct (Vector3 v1, Vector3 v2)
 Calculates the cross product of two vectors. More...
 
float kanzi::dotProduct (Vector3 v1, Vector3 v2)
 Calculates the dot product of two vectors. More...
 
Vector3 kanzi::getOrthogonalVector (Vector3 v)
 Finds a vector that is orthogonal to the given vector. More...
 
Vector3 kanzi::hslTosRGBColor (const Vector3 &vec)
 Converts a Vector3 from HSL color space to sRGB color space. More...
 
Vector3 kanzi::linearTosRGB (const Vector3 &vec)
 Converts to whole Vector3 from linear to sRGB. More...
 
bool kanzi::operator!= (Vector3 v1, Vector3 v2)
 Compares two vectors for inequality. 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+ (float v1, Vector3 v2)
 Adds a scalar and a vector and returns the sum. More...
 
Vector3 kanzi::operator+ (Vector3 v1, float v2)
 Adds a vector and a scalar and returns the sum. More...
 
Vector3 kanzi::operator+ (Vector3 v1, Vector3 v2)
 Adds two vectors and returns the sum. More...
 
Vector3 kanzi::operator+ (Vector3 v)
 Unary plus, doesn't do anything and returns the resulting vector. More...
 
Vector3 kanzi::operator- (Vector3 v1, Vector3 v2)
 Subtracts two vectors and returns the difference. More...
 
Vector3 kanzi::operator- (Vector3 v)
 Negates all vector elements 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...
 
bool kanzi::operator== (Vector3 v1, Vector3 v2)
 Compares two vectors for equality. More...
 
Vector3 kanzi::sRGBToHSLColor (const Vector3 &vec)
 Converts a Vector3 from sRGB color space to HSL color space. More...
 
Vector3 kanzi::sRGBToLinear (const Vector3 &vec)
 Converts to whole Vector3 from sRGB to linear. More...