mirror of
https://github.com/HandmadeMath/HandmadeMath.git
synced 2025-09-11 12:48:17 +00:00
Removed test files
This commit is contained in:
13
build.bat
13
build.bat
@@ -1,13 +0,0 @@
|
|||||||
@echo off
|
|
||||||
|
|
||||||
IF NOT EXIST build mkdir build
|
|
||||||
|
|
||||||
pushd build
|
|
||||||
|
|
||||||
REM C Build
|
|
||||||
REM cl -FC -nologo -Z7 -Tc ../main.c
|
|
||||||
|
|
||||||
REM C++ Build
|
|
||||||
cl -nologo -Zi -FC ../main.cpp
|
|
||||||
|
|
||||||
popd
|
|
17
main.c
17
main.c
@@ -1,17 +0,0 @@
|
|||||||
#include <conio.h>
|
|
||||||
|
|
||||||
#define HANDMADE_MATH_IMPLEMENTATION
|
|
||||||
|
|
||||||
#include "HandmadeMath.h"
|
|
||||||
|
|
||||||
int
|
|
||||||
main(int ArgC, char **ArgV)
|
|
||||||
{
|
|
||||||
vec2 VectorOne = V2(6.0f, 8.0f);
|
|
||||||
vec2 VectorTwo = V2(3.0f, 2.0f);
|
|
||||||
|
|
||||||
vec2 Result = DivideV2(VectorOne, VectorTwo);
|
|
||||||
|
|
||||||
_getch();
|
|
||||||
return(0);
|
|
||||||
}
|
|
27
main.cpp
27
main.cpp
@@ -1,27 +0,0 @@
|
|||||||
#define HANDMADE_MATH_IMPLEMENTATION
|
|
||||||
#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 ResultVector = TestVector1 - TestVector2;
|
|
||||||
|
|
||||||
|
|
||||||
mat4 MatrixZero = Mat4();
|
|
||||||
mat4 Matrix1 = Mat4d(5.0f);
|
|
||||||
|
|
||||||
mat4 Matrix2 = Mat4d(2.0f);
|
|
||||||
|
|
||||||
mat4 ResultMatrix = MultiplyMat4(Matrix1, Matrix2);
|
|
||||||
|
|
||||||
mat4 ResultMatrix2 = Matrix1 * Matrix2;
|
|
||||||
_getch();
|
|
||||||
return(0);
|
|
||||||
}
|
|
Reference in New Issue
Block a user