All Classes Functions Variables
Public Member Functions | List of all members
EnjoLib::VectorMath Class Reference

Public Member Functions

double dot (const Vect3 &a, const Vect3 &b)
 Dot product.
Vect3 cross (const Vect3 &a, const Vect3 &b)
 Cross product.
double angle (const Vect3 &a, const Vect3 &b)
 Angle between vectors.
double angle (const Point &a, const Point &b)
Point Cast3Donto2D (const Vect3 &in3D, const Vect3 &v1, const Vect3 &v2)
Vect3 Cast2Donto3D (const Point &in2D, const Vect3 &v1, const Vect3 &v2)

Member Function Documentation

double VectorMath::angle ( const Vect3 a,
const Vect3 b 
)

Angle between vectors.

Calculates angle between two vectors

Parameters
a1st vector
a2nd vector
Returns
angle between vectors
Vect3 VectorMath::cross ( const Vect3 a,
const Vect3 b 
)

Cross product.

Calculates cross product of two vectors

Parameters
a1st vector
a2nd vector
Returns
cross product
double VectorMath::dot ( const Vect3 a,
const Vect3 b 
)

Dot product.

Calculates dot product of two vectors

Parameters
a1st vector
a2nd vector
Returns
dot product

The documentation for this class was generated from the following files: