daily update on 20230408 by nitload youmu
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user