feat: sync with Whoa implementation

This commit is contained in:
VDm 2026-04-24 00:30:51 +04:00
parent 254ba545f5
commit 6a31dc3ea4
19 changed files with 988 additions and 774 deletions

View file

@ -47,6 +47,16 @@ TEST_CASE("C3Vector", "[vector]") {
}
}
TEST_CASE("C3Vector::operator-", "[vector]") {
SECTION("returns vector with negated values") {
auto vector = C3Vector(1.0f, 2.0f, 3.0f);
auto negated = -vector;
CHECK(negated.x == -1.0f);
CHECK(negated.y == -2.0f);
CHECK(negated.z == -3.0f);
}
}
TEST_CASE("C3Vector::operator*=", "[vector]") {
SECTION("multiplies by 2.0f") {
auto vector = C3Vector(1.0f, 2.0f, 3.0f);