Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// OSZÁLYON KÍVÜL
- // Cross product
- template <class T>
- inline Vec3<T> cross(const Vec3<T>& a, const Vec3<T>& b)
- {
- return Vec3<T>(a.y()*b.z() - a.z()*b.y(),
- a.z()*b.x() - a.x()*b.z(),
- a.x()*b.y() - a.y()*b.x());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement