Fix Vector2 multiplication operator behavior

This commit is contained in:
Rob Loach
2021-12-24 15:05:45 -05:00
parent bf2cb770ab
commit 9de4e175e4
5 changed files with 58 additions and 47 deletions

View File

@@ -25,6 +25,16 @@ int main(int argc, char *argv[]) {
position += speed;
assert(position.x == 310);
assert(raylib::Window::IsReady() == false);
raylib::Vector2 size{50,50};
raylib::Vector2 halfsize = size / 2.0f;
assert(size.x == 50);
assert(halfsize.x == 25);
raylib::Vector2 doublesize = size * 2.0f;
assert(size.x == 50);
assert(doublesize.x == 100);
}
// Color