Удаление избыточных методов и реорганизация библиотеки / Removing of extra methods and reorganization of the library

This commit is contained in:
Andrey Pokidov 2024-11-15 19:11:49 +07:00
parent 301cabe8de
commit c38c5ac857
14 changed files with 969 additions and 1583 deletions

View file

@ -45,14 +45,6 @@ namespace Geometry
this.x3 = -this.x3;
}
public readonly void GetConjugate(out SPQuaternion conjugated)
{
conjugated.s0 = this.s0;
conjugated.x1 = -this.x1;
conjugated.x2 = -this.x2;
conjugated.x3 = -this.x3;
}
public void SetValues(float s0, float x1, float x2, float x3)
{
this.s0 = s0;
@ -77,6 +69,14 @@ namespace Geometry
this.x3 = (float)quaternion.x3;
}
public void SetConjugateOf(in SPQuaternion quaternion)
{
this.s0 = quaternion.s0;
this.x1 = -quaternion.x1;
this.x2 = -quaternion.x2;
this.x3 = -quaternion.x3;
}
public readonly void MakeRotationMatrix(out SPMatrix3x3 matrix)
{
float s0s0 = this.s0 * this.s0;