Pathfinder
Namespaces | Functions
Vec.cpp File Reference

This file implements all functionality declared in Vec.h. More...

#include <cmath>
#include "Vec.h"
#include "Compare.h"
Include dependency graph for Vec.cpp:

Namespaces

 Pathfinder
 

Functions

Geometry::Vec3 Pathfinder::crossProduct (const Geometry::Vec3 &a, const Geometry::Vec3 &b)
 Compute the cross product of two vectors. More...
 
float Pathfinder::dotProduct (const Geometry::Vec3 &a, const Geometry::Vec3 &b)
 Compute the dot product of two vectors. More...
 
Geometry::Vec3 Pathfinder::scalarMultiplication (const float &a, const Geometry::Vec3 &b)
 Scale a vector by a scalar. More...
 
bool Pathfinder::operator< (const Geometry::Vec3 &l, const Geometry::Vec3 &r)
 Overload operator<. More...
 
float Pathfinder::distance2 (Geometry::Vec2 &p1, Geometry::Vec2 &p2)
 Compute the euclidean distance between two points in 2D. More...
 
float Pathfinder::distance3 (const Geometry::Vec3 &v1, const Geometry::Vec3 &v2)
 Compute the euclidean distance between two nodes. More...
 

Detailed Description

This file implements all functionality declared in Vec.h.

Author
Jan-Luca Hansel