Skip to content

Commit

Permalink
Added a Swap() function to the integer vector class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackvoxel committed Aug 5, 2021
1 parent 6409c94 commit 3a897a6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/z/ZType_ZVector3L.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,17 @@ class ZVector3L
return(sqrt(dist));
}

inline ZVector3L & Swap( ZVector3L & Var2)
{
ZVector3L Temp;

Temp = Var2;
Var2 = *this;
*this = Temp;

return(*this);
}

};


Expand Down

0 comments on commit 3a897a6

Please sign in to comment.