Commit 436bc967 authored by Nghia Truong's avatar Nghia Truong
Browse files

ENH: Add function to allow sorting collision data using the a provided lambda

parent dda1f518
......@@ -22,6 +22,7 @@
#pragma once
#include <array>
#include <algorithm>
#include "imstkMath.h"
#include "imstkLogUtility.h"
......@@ -70,6 +71,11 @@ public:
m_Data[idx] = data;
/// \brief Sort the collision data using the provided compare function
template<class Comp>
void sort(Comp&& comp) { std::sort(m_Data.begin(), m_Data.end(), comp); }
/// \brief Check if the data array is emtpy
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment