Отказ от функций 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

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