Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- @info: retrieves the distance between point 1 and point 2 (third dimension).
- @author: the creator of the third dimension.
- */
- float distance3d(float px, float py, float pz, float dx, float dy, float dz)
- {
- return sqrtf(powf(dx - px, 2.0f) + powf(dy - py, 2.0f) + powf(dz - pz, 2.0f));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement