Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Távolság a megadott vektortól
- inline T distance(const Vec3& other) const
- {
- T x = other.v[0]-v[0];
- T y = other.v[1]-v[1];
- T z = other.v[2]-v[2];
- return std::sqrt(x*x + y*y + z*z);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement