diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-03 21:22:19 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-04 00:16:57 +0200 |
commit | de99a85a63aa5cb85a4f5e67f8d5b1e7f3671c47 (patch) | |
tree | 717cd82e9fdfd7b8918b31258ed90f03c2049b07 | |
parent | 437794834f64a2ef2111f9e9437ab876eff4df88 (diff) |
entity: add vector types in erased range::operator==()
-rw-r--r-- | entity/erased-constraints.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/entity/erased-constraints.cpp b/entity/erased-constraints.cpp index 05cb370d..bb665307 100644 --- a/entity/erased-constraints.cpp +++ b/entity/erased-constraints.cpp @@ -156,6 +156,9 @@ bool operator==(const range& a, const range& b) case range::type_float: return std::fabs(a.min.f - b.min.f) < eps && std::fabs(a.max.f - b.max.f) < eps; case range::type_uint: return a.min.u == b.min.u && a.max.u == b.max.u; case range::type_int: return a.min.i == b.min.i && a.max.i == b.max.i; + case range::type_float4: return a.min.f4 == b.min.f4 && a.max.f4 == b.max.f4; + case range::type_uint4: return a.min.u4 == b.min.u4 && a.max.u4 == b.max.u4; + case range::type_int4: return a.min.i4 == b.min.i4 && a.max.i4 == b.max.i4; } } |