daily update on 20230106 by nitload youmu

This commit is contained in:
Nitload
2023-01-07 00:36:24 +08:00
parent 9c2f69ff9f
commit 6dfc2f8d70
58 changed files with 359 additions and 24 deletions
+6 -1
View File
@@ -33,7 +33,12 @@ namespace StgSharp.Geometries
get { return _id; }
}
float IGeometry.SetPointArray(Counter<uint> tickCounter)
public float SetArrayX(Counter<uint> tickCounter)
{
throw new NotImplementedException();
}
public float SetArrayY(Counter<uint> tickCounter)
{
throw new NotImplementedException();
}
@@ -19,6 +19,7 @@ namespace StgSharp.Geometries
get;
}
public float SetPointArray(Counter<uint> tickCounter);
public float SetArrayX(Counter<uint> tickCounter);
public float SetArrayY(Counter<uint> tickCounter);
}
}
+12 -1
View File
@@ -33,7 +33,18 @@ namespace StgSharp.Geometries
get { return _id; }
}
public float SetPointArray(Counter<uint> tickCounter)
public Line( Point referencePoint, float vecX, float vecY)
{
_referencePoint = referencePoint;
_vecX = vecX;
_vecY = vecY;
}
public float SetArrayX(Counter<uint> tickCounter)
{
return 0.0f;
}
public float SetArrayY(Counter<uint> tickCounter)
{
return 0.0f;
}
+31 -2
View File
@@ -1,4 +1,5 @@
using System;
using StgSharp.Logic;
using System;
using System.Collections.Generic;
using System.Text;
@@ -6,11 +7,39 @@ namespace StgSharp.Geometries
{
public class Square:IGeometry
{
private Logic.LinkedListNode<INode> _id;
internal Point _referrencePoint;
public float _vecX;
public float _vecY;
public Point ReferrencePoint
public Logic.LinkedListNode<INode> ID
{
get { return _id; }
}
public Point ReferencePoint
{
get { return _referrencePoint; }
}
public float vecX
{
get { return _vecX; }
}
public float vecY
{
get { return _vecY; }
}
public float SetArrayX(Counter<uint> tickCounter)
{
return 0.0f;
}
public float SetArrayY(Counter<uint> tickCounter)
{
return 0.0f;
}
}
}