We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84ba4b5 commit ff0a8dfCopy full SHA for ff0a8df
1 file changed
src/include/sndx/collision/volume.hpp
@@ -2,11 +2,13 @@
2
3
#include <glm/glm.hpp>
4
5
+#include <concepts>
6
+
7
namespace sndx {
8
9
template <class T>
10
concept Vector = requires(const T& vector) {
- { T::length() } -> std::convertible_to<size_t>;
11
+ { vector.length() } -> std::convertible_to<size_t>;
12
{ vector[0] } -> std::convertible_to<float>;
13
} && T::length() > 0;
14
@@ -17,7 +19,7 @@ namespace sndx {
17
19
18
20
21
concept Volume = requires(const T& t) {
- { T::dimensionality() } -> std::convertible_to<size_t>;
22
+ { t.dimensionality() } -> std::convertible_to<size_t>;
23
{ t.getSize() } -> VectorN<T::dimensionality()>;
24
{ t.getCenter() } -> VectorN<T::dimensionality()>;
25
{ t.getArea() } -> std::convertible_to<float>;
0 commit comments