Code: Alles auswählen
// This function computes the maximal scaling of this matrix (maximum of the
// return values of GetScalingX/Y/Z())
inline float GetMaximalScaling() const{
return sqrt(std::max(_11*_11+_12*_12+_13*_13, std::max(_21*_21+_22*_22+_23*_23,_31*_31+_32*_32+_33*_33)));
}
und:
Code: Alles auswählen
//min,max functions for Vectors,
template<typename t> Vector3<t> min(const Vector3<t>& V1, const Vector3<t>& V2)
{
return Vector3<t>(std::min(V1.x, V2.x), std::min(V1.y, V2.y), std::min(V1.z, V2.z));
}
template<typename t> Vector3<t> max(const Vector3<t>& V1, const Vector3<t>& V2)
{
return Vector3<t>(std::max(V1.x, V2.x), std::max(V1.y, V2.y), std::max(V1.z, V2.z));
}
Unter Codeblocks mit MinGW hat das alles wunderbar funktioniert und ich sehe da jetzt eigentlich auch kein richtiges Problem. Hat dazu jemand eine Idee?