Day 45 is complete.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user