30 #include "ball_funcs.h" 31 #include "miniball_funcs.h" 39 template<> Ball<3>& Ball<3>::rotateCorner(
const Quaternion&,
size_t)
44 template<> Ball<3>& Ball<3>::rotateCenter(
const Quaternion&)
49 template<> Ball<3>& Ball<3>::rotatePoint(
const Quaternion& q,
const Point<3>& p)
51 m_center.rotate(q, p);
return *
this;
54 template<> Ball<3> Ball<3>::toParentCoords(
const Point<3>& origin,
55 const Quaternion& rotation)
const 57 return Ball<3>(m_center.toParentCoords(origin, rotation), m_radius);
60 template<> Ball<3> Ball<3>::toLocalCoords(
const Point<3>& origin,
61 const Quaternion& rotation)
const 63 return Ball<3>(m_center.toLocalCoords(origin, rotation), m_radius);
66 template Ball<2> BoundingSphere<2, std::vector>(std::vector<Point<2>,
67 std::allocator<Point<2> > >
const&);
69 template Ball<2> BoundingSphereSloppy<2, std::vector>(std::vector<Point<2>,
70 std::allocator<Point<2> > >
const&);
72 template Ball<3> BoundingSphere<3, std::vector>(std::vector<Point<3>,
73 std::allocator<Point<3> > >
const&);
75 template Ball<3> BoundingSphereSloppy<3, std::vector>(std::vector<Point<3>,
76 std::allocator<Point<3> > >
const&);
78 template Ball<2> Point<2>::boundingSphere()
const;
79 template Ball<2> Point<2>::boundingSphereSloppy()
const;
81 template Ball<3> Point<3>::boundingSphere()
const;
82 template Ball<3> Point<3>::boundingSphereSloppy()
const;
84 template class Ball<2>;
85 template class Ball<3>;
87 static_assert(std::is_standard_layout<Ball<3>>::value,
"Ball should be standard layout.");
88 static_assert(std::is_trivially_copyable<Ball<3>>::value,
"Ball should be trivially copyable.");
90 static_assert(std::is_standard_layout<Ball<2>>::value,
"Ball should be standard layout.");
91 static_assert(std::is_trivially_copyable<Ball<2>>::value,
"Ball should be trivially copyable.");
Generic library namespace.