Kanzi 3.9.10
vector3.hpp File Reference

Classes

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

Namespaces

namespace  kanzi
 

Functions

Vector3 kanzi::componentAbs (Vector3 v)
 Calculates component-wise absolute value for all elements and returns resulting vector.
 
Vector3 kanzi::componentAdd (Vector3 v, float scalar)
 Adds a value to all elements of a vector and returns the result.
 
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.
 
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.
 
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.
 
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.
 
Vector3 kanzi::componentCeil (Vector3 v)
 Calculates component-wise ceil value for all elements and returns resulting vector.
 
Vector3 kanzi::componentFloor (Vector3 v)
 Calculates component-wise floor value for all elements and returns resulting vector.
 
Vector3 kanzi::componentRound (Vector3 v)
 Calculates component-wise rounded value for all elements and returns resulting vector.
 
Vector3 kanzi::componentSqrt (Vector3 v)
 Calculates component-wise square root all elements and returns resulting vector.
 
Vector3 kanzi::componentSubtract (Vector3 v, float scalar)
 Subtracts a value from all elements of a vector and returns the result.
 
Vector3 kanzi::componentWiseDivide (Vector3 v1, Vector3 v2)
 Divides component-wise all vector elements and returns the resulting vector.
 
Vector3 kanzi::componentWiseMax (Vector3 v1, Vector3 v2)
 Calculates the component-wise maximum for all vector elements and returns the resulting vector.
 
Vector3 kanzi::componentWiseMin (Vector3 v1, Vector3 v2)
 Calculates the component-wise minimum for all vector elements and returns the resulting vector.
 
Vector3 kanzi::componentWiseMultiply (Vector3 v1, Vector3 v2)
 Multiplies component-wise all vector elements and returns the resulting vector.
 
Vector3 kanzi::componentWiseRemainder (Vector3 v1, Vector3 v2)
 Calculates component-wise the remainder for all vector elements and returns the resulting vector.
 
Vector3 kanzi::crossProduct (Vector3 v1, Vector3 v2)
 Calculates the cross product of two vectors.
 
float kanzi::dotProduct (Vector3 v1, Vector3 v2)
 Calculates the dot product of two vectors.
 
Vector3 kanzi::getOrthogonalVector (Vector3 v)
 Finds a vector that is orthogonal to the given vector.
 
Vector3 kanzi::hslTosRGBColor (const Vector3 &vec)
 Converts a Vector3 from HSL color space to sRGB color space.
 
Vector3 kanzi::linearTosRGB (const Vector3 &vec)
 Converts to whole Vector3 from linear to sRGB.
 
bool kanzi::operator!= (Vector3 v1, Vector3 v2)
 Compares two vectors for inequality.
 
Vector3 kanzi::operator* (float scalar, Vector3 v)
 Multiplies all vector elements with a scalar and returns the resulting vector.
 
Vector3 kanzi::operator* (Vector3 v, float scalar)
 Multiplies all vector elements with a scalar and returns the resulting vector.
 
Vector3 kanzi::operator+ (float v1, Vector3 v2)
 Adds a scalar and a vector and returns the sum.
 
Vector3 kanzi::operator+ (Vector3 v)
 Unary plus, doesn't do anything and returns the resulting vector.
 
Vector3 kanzi::operator+ (Vector3 v1, float v2)
 Adds a vector and a scalar and returns the sum.
 
Vector3 kanzi::operator+ (Vector3 v1, Vector3 v2)
 Adds two vectors and returns the sum.
 
Vector3 kanzi::operator- (Vector3 v)
 Negates all vector elements and returns the resulting vector.
 
Vector3 kanzi::operator- (Vector3 v1, Vector3 v2)
 Subtracts two vectors and returns the difference.
 
Vector3 kanzi::operator/ (Vector3 v, float scalar)
 Divides all vector elements with a scalar and returns the resulting vector.
 
bool kanzi::operator== (Vector3 v1, Vector3 v2)
 Compares two vectors for equality.
 
Vector3 kanzi::sRGBToHSLColor (const Vector3 &vec)
 Converts a Vector3 from sRGB color space to HSL color space.
 
Vector3 kanzi::sRGBToLinear (const Vector3 &vec)
 Converts to whole Vector3 from sRGB to linear.