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