Отказ от функций GetWeightedSum в пользу AppendScaled; оптимизация версоров / Replacing of GetWeightedSum onto AppendScaled; versor optimization

This commit is contained in:
Andrey Pokidov 2024-11-20 01:33:05 +07:00
parent c3dc0b2ecd
commit c66edd3432
14 changed files with 142 additions and 548 deletions

View file

@ -134,10 +134,10 @@ namespace BGC
this.x2 = -vector.x2;
}
public void AppendScaled(F64Vector2 scalableSummand, double scale)
public void AppendScaled(F64Vector2 summand, double scale)
{
this.x1 += scalableSummand.x1 * scale;
this.x2 += scalableSummand.x2 * scale;
this.x1 += summand.x1 * scale;
this.x2 += summand.x2 * scale;
}
public readonly override string ToString()