Age | Commit message (Collapse) | Author |
|
v3f_distance_sq() variant omits the sqrtf(), which is often a possible
optimization when e.g. comparing distances; just operate uniformly with
squares of the distances.
|
|
|
|
|
|
|
|
|
|
The return by value variants of the vector-returning functions have
been renamed to be prefixed with an _.
Now the return by pointer variants lack any prefix as it's expected
they'll be more commonly used in practice.
Another change is the return by pointer variants now take the result
pointer as the first argument, and a NULL result pointer is handled by
dynamically allocating the result memory.
|
|
|
|
|
|
It can be convenient to supply and return a result pointer, making
for more composable vector operations.
|
|
|