daily update on 20230408 by nitload youmu

This commit is contained in:
Nitload
2023-04-08 01:34:08 +08:00
parent 8641b24206
commit daaa62579b
196 changed files with 2983 additions and 174 deletions
+12 -1
View File
@@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
namespace StgSharp
namespace StgSharp.Geometries
{
public class Triangle :IGeometry
{
@@ -14,6 +14,7 @@ namespace StgSharp
internal Point _line1;
internal Point _line2;
internal RenderMode _renderMode;
internal readonly uint bornTick;
public override sealed Point BasePoint => _basePoint;
@@ -25,6 +26,16 @@ namespace StgSharp
public override RenderMode renderMode => _renderMode;
public Triangle(uint bornTime) : base(bornTime)
{
bornTick = bornTime;
}
public Triangle(Counter<uint> tickCounter) : base(tickCounter)
{
bornTick = tickCounter._value;
}
internal override void CalcVec01(uint tick)
{
_beginPoint._position = _basePoint._position+ MovBegin(tick);