Pathfinder
Vec.h
Go to the documentation of this file.
1 
9 #ifndef VEC_H
10 #define VEC_H
11 
12 #include <Geometry/Vec2.h>
13 
14 #include "Using.h"
15 
16 namespace Pathfinder {
17 
26  Geometry::Vec3
28  const Geometry::Vec3& a,
29  const Geometry::Vec3& b
30  );
31 
32 
41  float
42  dotProduct(
43  const Geometry::Vec3& a,
44  const Geometry::Vec3& b
45  );
46 
47 
56  Geometry::Vec3
58  const float& a,
59  const Geometry::Vec3& b
60  );
61 
62 
71  bool
72  operator<(
73  const Geometry::Vec3& l,
74  const Geometry::Vec3& r
75  );
76 
77 
86  float
87  distance2(
88  Geometry::Vec2& p1,
89  Geometry::Vec2& p2
90  );
91 
92 
103  float
104  distance3(
105  const Geometry::Vec3 &v1,
106  const Geometry::Vec3 &v2
107  );
108 
109 }
110 
111 #endif
float distance2(Geometry::Vec2 &p1, Geometry::Vec2 &p2)
Compute the euclidean distance between two points in 2D.
Definition: Vec.cpp:56
Definition: AABB.cpp:21
bool operator<(const Geometry::Vec3 &l, const Geometry::Vec3 &r)
Overload operator<.
Definition: Vec.cpp:40
float distance3(const Geometry::Vec3 &v1, const Geometry::Vec3 &v2)
Compute the euclidean distance between two nodes.
Definition: Vec.cpp:61
Geometry::Vec3 scalarMultiplication(const float &a, const Geometry::Vec3 &b)
Scale a vector by a scalar.
Definition: Vec.cpp:32
Geometry::Vec3 crossProduct(const Geometry::Vec3 &a, const Geometry::Vec3 &b)
Compute the cross product of two vectors.
Definition: Vec.cpp:16
float dotProduct(const Geometry::Vec3 &a, const Geometry::Vec3 &b)
Compute the dot product of two vectors.
Definition: Vec.cpp:24
This file provides using and enum declarations.