All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
vector2.hpp File Reference

Classes

class  kanzi::Vector2
 Vector with 2 floating point components: (x, y). More...
 

Namespaces

 kanzi
 

Functions

Vector2 kanzi::componentWiseMax (Vector2 v1, Vector2 v2)
 Calculates the component wise maximum for all vector elements and returns the resulting vector. More...
 
Vector2 kanzi::componentWiseMin (Vector2 v1, Vector2 v2)
 Calculates the component wise minimum for all vector elements and returns the resulting vector. More...
 
Vector2 kanzi::componentWiseMultiply (Vector2 v1, Vector2 v2)
 Does component wise multiply for all vector elements and returns the resulting vector. More...
 
Vector2 kanzi::componentWiseDivide (Vector2 v1, Vector2 v2)
 Does component wise divide for all vector elements and returns the resulting vector. More...
 
Vector2 kanzi::operator+ (Vector2 v1, Vector2 v2)
 Adds two vectors and returns the sum. More...
 
Vector2 kanzi::operator- (Vector2 v1, Vector2 v2)
 Subtracts two vectors and returns the difference. More...
 
Vector2 kanzi::operator* (Vector2 v, float scalar)
 Multiplies all vector elements with a scalar and returns the resulting vector. More...
 
Vector2 kanzi::operator* (float scalar, Vector2 v)
 Multiplies all vector elements with a scalar and returns the resulting vector. More...
 
Vector2 kanzi::operator/ (Vector2 v, float scalar)
 Divides all vector elements with a scalar and returns the resulting vector. More...
 
Vector2 kanzi::operator- (Vector2 v)
 Negates all vector elements and returns the resulting vector. More...
 
Vector2 kanzi::operator+ (Vector2 v)
 Unary plus, doesn't do anything and returns the resulting vector. More...
 
bool kanzi::operator== (Vector2 v1, Vector2 v2)
 Compares two vectors for equality. More...
 
bool kanzi::operator!= (Vector2 v1, Vector2 v2)
 Compares two vectors for inequality. More...
 
float kanzi::dotProduct (Vector2 v1, Vector2 v2)
 Calculates the dot product of two vectors. More...
 
float kanzi::pseudoCrossProduct (const Vector2 &left, const Vector2 &right)
 Calculates pseudo-cross product of two 2D vectors. More...