Cleanup: follow C++ type cast style guide in some files
https://wiki.blender.org/wiki/Style_Guide/C_Cpp#C.2B.2B_Type_Cast This was discussed in https://devtalk.blender.org/t/rfc-style-guide-for-type-casts-in-c-code/25907.
This commit is contained in:
@@ -357,9 +357,9 @@ inline vec_base<T, 3> cross(const vec_base<T, 3> &a, const vec_base<T, 3> &b)
|
||||
inline vec_base<float, 3> cross_high_precision(const vec_base<float, 3> &a,
|
||||
const vec_base<float, 3> &b)
|
||||
{
|
||||
return {(float)((double)a.y * b.z - (double)a.z * b.y),
|
||||
(float)((double)a.z * b.x - (double)a.x * b.z),
|
||||
(float)((double)a.x * b.y - (double)a.y * b.x)};
|
||||
return {float(double(a.y) * double(b.z) - double(a.z) * double(b.y)),
|
||||
float(double(a.z) * double(b.x) - double(a.x) * double(b.z)),
|
||||
float(double(a.x) * double(b.y) - double(a.y) * double(b.x))};
|
||||
}
|
||||
|
||||
template<typename T, BLI_ENABLE_IF((is_math_float_type<T>))>
|
||||
|
||||
Reference in New Issue
Block a user