Skip to content
Snippets Groups Projects
Commit e70595d5 authored by Thomas Toulorge's avatar Thomas Toulorge
Browse files

Added unary minus operator to SVector3

parent fe782a92
No related branches found
No related tags found
No related merge requests found
...@@ -128,6 +128,9 @@ inline SVector3 operator+(const SVector3 &a,const SVector3 &b) ...@@ -128,6 +128,9 @@ inline SVector3 operator+(const SVector3 &a,const SVector3 &b)
inline SVector3 operator-(const SVector3 &a,const SVector3 &b) inline SVector3 operator-(const SVector3 &a,const SVector3 &b)
{ return SVector3(a[0] - b[0], a[1] - b[1], a[2] - b[2]); } { return SVector3(a[0] - b[0], a[1] - b[1], a[2] - b[2]); }
inline SVector3 operator-(const SVector3 &a)
{ return SVector3(-a[0], -a[1], -a[2]); }
inline void buildOrthoBasis_naive(SVector3 &dir, SVector3 &dir1, SVector3 &dir2) inline void buildOrthoBasis_naive(SVector3 &dir, SVector3 &dir1, SVector3 &dir2)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment