mirror of
https://github.com/HandmadeMath/HandmadeMath.git
synced 2025-09-20 00:58:18 +00:00
Added operator overloading
This commit is contained in:
9
main.cpp
9
main.cpp
@@ -2,8 +2,17 @@
|
||||
#define HANDMADE_MATH_CPP_MODE
|
||||
#include "HandmadeMath.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <conio.h>
|
||||
|
||||
int
|
||||
main(int ArgC, char **ArgV)
|
||||
{
|
||||
vec2 TestVector1 = V2(50.0f, 36.0f);
|
||||
vec2 TestVector2 = V2(5.0f, 6.0f);
|
||||
|
||||
vec2 Result = TestVector1 - TestVector2;
|
||||
|
||||
_getch();
|
||||
return(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user