Computes a normalized direction vector between two points 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
| 404 | // start,end - the start and end points used to calculate the vector |
| 405 | // Returns: the distance between the two input points |
| 406 | float vm_GetNormalizedDir(vector *dest, vector *end, vector *start) { |
| 407 | vm_SubVectors(dest, end, start); |
| 408 | return vm_NormalizeVector(dest); |
| 409 | } |
| 410 | |
| 411 | // Returns a normalized direction vector between two points |
| 412 | // Just like vm_GetNormalizedDir(), but uses sloppier magnitude, less precise |
no test coverage detected