mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-30 12:23:42 +01:00
Add NearEqual for vectors.
This commit is contained in:
parent
d10043a69a
commit
5cdcb9288e
2 changed files with 16 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue