Small fix

This commit is contained in:
Andrey Pokidov 2025-02-04 13:44:21 +07:00
parent 07623b2aa6
commit c8f5a3f077

View file

@ -196,12 +196,12 @@ inline void bgc_versor_set_rotation_fp64(const BgcRotation3FP64* rotation, BgcVe
inline int bgc_versor_is_idle_fp32(const BgcVersorFP32* versor)
{
return (1.0f - BGC_EPSYLON_FP32 <= versor->s0) | (versor->s0 <= -(1.0 - BGC_EPSYLON_FP32));
return 1.0f - BGC_EPSYLON_FP32 <= versor->s0 || versor->s0 <= -(1.0 - BGC_EPSYLON_FP32);
}
inline int bgc_versor_is_idle_fp64(const BgcVersorFP64* versor)
{
return (1.0 - BGC_EPSYLON_FP64 <= versor->s0) | (versor->s0 <= -(1.0 - BGC_EPSYLON_FP64));
return 1.0 - BGC_EPSYLON_FP64 <= versor->s0 || versor->s0 <= -(1.0 - BGC_EPSYLON_FP64);
}
// ============= Copy to twin type ============== //