Returns a normalized direction vector between two points Just like vm_GetNormalizedDir(), but uses sloppier magnitude, less precise Parameters: dest - filled in with the normalized direction vector start,end - the start and end points used to calculate the vector Returns: the distance between the two input points
| 414 | // start,end - the start and end points used to calculate the vector |
| 415 | // Returns: the distance between the two input points |
| 416 | float vm_GetNormalizedDirFast(vector *dest, vector *end, vector *start) { |
| 417 | vm_SubVectors(dest, end, start); |
| 418 | return vm_NormalizeVectorFast(dest); |
| 419 | } |
| 420 | |
| 421 | float vm_GetMagnitudeFast(vector *v) { |
| 422 | float a, b, c, bc; |
no test coverage detected