Move Swap(T&, T&) to J3ML.h
This commit is contained in:
@@ -7,14 +7,7 @@
|
||||
|
||||
namespace J3ML::Geometry
|
||||
{
|
||||
// TODO: Move to separate math lib, find duplicates!
|
||||
template <typename T>
|
||||
void Swap(T &a, T &b)
|
||||
{
|
||||
T temp = std::move(a);
|
||||
a = std::move(b);
|
||||
b = std::move(temp);
|
||||
}
|
||||
|
||||
|
||||
/// A 3D cylinder with spherical ends.
|
||||
class Capsule : public Shape
|
||||
|
Reference in New Issue
Block a user