Add NearEqual for vectors.

This commit is contained in:
Ottermandias 2024-02-01 13:51:38 +01:00
parent d10043a69a
commit 5cdcb9288e
2 changed files with 16 additions and 1 deletions

View file

@ -75,7 +75,7 @@ public readonly struct ApplicationRules(
{
var modelValue = model.Parameters[flag];
var gameValue = game.Parameters[flag];
if ((modelValue.InternalQuadruple - gameValue.InternalQuadruple).LengthSquared() < 1e-9f)
if (modelValue.NearEqual(gameValue))
baseFlags &= ~flag;
}