daily update on 20230416 by nitload youmu

This commit is contained in:
Nitload
2023-04-16 03:28:59 +08:00
parent 9756504e9d
commit 7891a26550
26 changed files with 215 additions and 94 deletions
+10 -3
View File
@@ -1,4 +1,5 @@
using StgSharp;
using StgSharp.Linear;
using StgSharp.Math;
using System;
using System.Collections.Generic;
@@ -16,7 +17,7 @@ namespace StgSharp.Geometries
internal RenderMode _renderMode;
internal readonly uint bornTick;
public override sealed Point BasePoint => _basePoint;
public override sealed Point RefOrigin => _basePoint;
public override sealed Point RefPoint=>_vertex1;
@@ -63,8 +64,8 @@ namespace StgSharp.Geometries
switch (_renderMode)
{
case RenderMode.BasePoint:
CalcVec02(BasePoint._position,tick);
CalcVec03(BasePoint._position,tick);
CalcVec02(RefOrigin._position,tick);
CalcVec03(RefOrigin._position,tick);
break;
case RenderMode.RefPoint:
CalcVec02(_vertex1._position,tick);
@@ -103,5 +104,11 @@ namespace StgSharp.Geometries
return sides;
}
public override Plain GetPlain()
{
return new Plain(this._vertex1,this._vertex2,this._vertex3);
}
}
}