now using absolute values for vsqrmagnitudef
This commit is contained in:
parent
dae9be6196
commit
7b8f3565dd
|
@ -75,7 +75,7 @@ float vmagnitudef(Vector a) {
|
|||
}
|
||||
static inline
|
||||
float vsqrmagnitudef(Vector a) {
|
||||
return a.x*a.x + a.y*a.y;
|
||||
return fabsf(a.x*a.x) + fabsf(a.y*a.y);
|
||||
}
|
||||
static inline
|
||||
Vector vnormalizedf(Vector a) {
|
||||
|
|
Loading…
Reference in a new issue