mirror of
https://github.com/BlackMATov/vmath.hpp.git
synced 2025-12-16 14:11:28 +07:00
min/max for vector components
This commit is contained in:
@@ -117,9 +117,11 @@ TEST_CASE("vmath/vec_fun") {
|
||||
REQUIRE(out_i.x == Approx(1.f));
|
||||
}
|
||||
|
||||
STATIC_REQUIRE(min(vec2i(1,2)) == 1);
|
||||
STATIC_REQUIRE(min(vec2i(1,2), 1) == vec2i(1,1));
|
||||
STATIC_REQUIRE(min(vec2i(1,1), vec2i(0,2)) == vec2i(0,1));
|
||||
|
||||
STATIC_REQUIRE(max(vec2i(1,2)) == 2);
|
||||
STATIC_REQUIRE(max(vec2i(1,2), 1) == vec2i(1,2));
|
||||
STATIC_REQUIRE(max(vec2i(1,1), vec2i(0,2)) == vec2i(1,2));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user