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
| 458 | // start,end - the start and end points used to calculate the vector |
| 459 | // Returns: the distance between the two input points |
| 460 | float vm_GetNormalizedDirFast(vector *dest, vector *end, vector *start) { |
| 461 | vm_SubVectors(dest, end, start); |
| 462 | return vm_VectorNormalizeFast(dest); |
| 463 | } |
| 464 | |
| 465 | float vm_GetMagnitudeFast(vector *v) { |
| 466 | float a, b, c, bc; |
no test coverage detected