|
|
|
|
@ -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(); |
|
|
|
|
|