Browse Source

DebugTools: this shouldn't be inline.

pull/23/head
Vladimír Vondruš 13 years ago
parent
commit
7b087425cf
  1. 2
      src/DebugTools/Implementation/CapsuleRendererTransformation.h

2
src/DebugTools/Implementation/CapsuleRendererTransformation.h

@ -35,7 +35,7 @@ namespace Magnum { namespace DebugTools { namespace Implementation {
template<UnsignedInt dimensions> std::array<typename DimensionTraits<dimensions, Float>::MatrixType, 3> capsuleRendererTransformation(const typename DimensionTraits<dimensions, Float>::VectorType& a, const typename DimensionTraits<dimensions, Float>::VectorType& b, Float radius);
template<> inline std::array<Matrix3, 3> capsuleRendererTransformation<2>(const Vector2& a, const Vector2& b, const Float radius) {
template<> std::array<Matrix3, 3> capsuleRendererTransformation<2>(const Vector2& a, const Vector2& b, const Float radius) {
/* Vector from capsule center to top hemisphere center */
const Vector2 direction = 0.5f*(b - a);
const Float length = direction.length();

Loading…
Cancel
Save