Удаление избыточных методов и реорганизация библиотеки / Removing of extra methods and reorganization of the library
This commit is contained in:
parent
301cabe8de
commit
c38c5ac857
14 changed files with 969 additions and 1583 deletions
|
|
@ -46,11 +46,6 @@ namespace Geometry
|
|||
this.x3 = -this.x3;
|
||||
}
|
||||
|
||||
public readonly DPQuaternion GetConjugate()
|
||||
{
|
||||
return new DPQuaternion(this.s0, -this.x1, -this.x2, -this.x3);
|
||||
}
|
||||
|
||||
public void SetValues(double s0, double x1, double x2, double x3)
|
||||
{
|
||||
this.s0 = s0;
|
||||
|
|
@ -75,6 +70,14 @@ namespace Geometry
|
|||
this.x3 = quaternion.x3;
|
||||
}
|
||||
|
||||
public void SetConjugateOf(in DPQuaternion quaternion)
|
||||
{
|
||||
this.s0 = quaternion.s0;
|
||||
this.x1 = -quaternion.x1;
|
||||
this.x2 = -quaternion.x2;
|
||||
this.x3 = -quaternion.x3;
|
||||
}
|
||||
|
||||
public readonly void MakeRotationMatrix(out DPMatrix3x3 matrix)
|
||||
{
|
||||
double s0s0 = this.s0 * this.s0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue