VERY hacky positional audio
This commit is contained in:
@@ -47,6 +47,11 @@ V3f V3f_Sub(V3f a, V3f b) {
|
||||
return result;
|
||||
}
|
||||
|
||||
F32 V2f_Dot(V2f a, V2f b) {
|
||||
F32 result = (a.x * b.x) + (a.y * b.y);
|
||||
return result;
|
||||
}
|
||||
|
||||
F32 V3f_Dot(V3f a, V3f b) {
|
||||
F32 result = (a.x * b.x) + (a.y * b.y) + (a.z * b.z);
|
||||
return result;
|
||||
|
||||
@@ -118,6 +118,7 @@ function V3f V3f_Neg(V3f x);
|
||||
function V3f V3f_Scale(V3f x, F32 s);
|
||||
function V3f V3f_Sub(V3f a, V3f b);
|
||||
|
||||
function F32 V2f_Dot(V2f a, V2f b);
|
||||
function F32 V3f_Dot(V3f a, V3f b);
|
||||
function F32 V4f_Dot(V4f a, V4f b);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user