Day 45 is complete.

This commit is contained in:
2026-06-25 17:31:29 -07:00
parent 1ba8acfe51
commit 943ed21776
4 changed files with 80 additions and 29 deletions
+7
View File
@@ -1,6 +1,7 @@
#ifndef HANDMADE_MATH_H
#define HANDMADE_MATH_H
// TODO: Make these static.
typedef struct v2 {
F32 X, Y;
F32 E[2];
@@ -71,4 +72,10 @@ F32 InnerProduct(v2 A, v2 B)
return Result;
}
F32 LengthSq(v2 A)
{
F32 Result = InnerProduct(A, A);
return Result;
}
#endif