echo 'Creating brew-patch.diff' cat << EOF >> brew-patch.diff diff --git a/include/MT/Quaternion.h b/include/MT/Quaternion.h index 3726b4f..3393697 100644 --- a/include/MT/Quaternion.h +++ b/include/MT/Quaternion.h @@ -154,7 +154,7 @@ namespace MT { Quaternion inverse() const { - return conjugate / length2(); + return conjugate() / length2(); } Quaternion slerp(const Quaternion& q, const Scalar& t) const diff --git a/src/complex/DT_CBox.h b/src/complex/DT_CBox.h index 7fc7c5d..16ce972 100644 --- a/src/complex/DT_CBox.h +++ b/src/complex/DT_CBox.h @@ -131,4 +131,6 @@ inline DT_CBox operator-(const DT_CBox& b1, const DT_CBox& b2) b1.getExtent() + b2.getExtent()); } +inline DT_CBox computeCBox(MT_Scalar margin, const MT_Transform& xform); + #endif EOF