Small fix
This commit is contained in:
parent
07623b2aa6
commit
c8f5a3f077
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
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)
|
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 ============== //
|
// ============= Copy to twin type ============== //
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue