Added arithmetic operators
This commit is contained in:
parent
471a6ce36d
commit
59942d3de0
2 changed files with 105 additions and 1 deletions
|
@ -4,7 +4,10 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
sdlu::Vector2f vec(.4f, -2.3f);
|
||||
sdlu::Vector2f vecA(.4f, -2.3f);
|
||||
sdlu::Vector2f vecB(-8.9f, 0.003f);
|
||||
sdlu::Vector2f vec = vecA + vecB;
|
||||
|
||||
std::cout << "Vector2f: " << vec.x << ", " << vec.y << std::endl;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue