daily update on 20230120 by nitload youmu, struct of project fixed, math lib created

This commit is contained in:
Nitload
2023-01-20 00:45:19 +08:00
parent e9116ca11b
commit c14b7ae7f8
50 changed files with 202 additions and 159 deletions
+20 -6
View File
@@ -1,14 +1,13 @@
using StgSharp.Logic;
using StgSharp.Geometries;
using StgSharp;
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Geometries
namespace StgSharp
{
public class Circle : IGeometrySimple
public class Circle : IGeometry
{
private Logic.ContainerNode<INode> _id;
private StgSharp.ContainerNode<INode> _id;
internal Point _referencePoint;
internal float _vecX;
internal float _vecY;
@@ -28,7 +27,10 @@ namespace StgSharp.Geometries
get { return _vecY; }
}
ContainerNode<INode> INode.ID
{
get { return _id; }
}
public float SetArrayX(Counter<uint> tickCounter)
{
@@ -39,5 +41,17 @@ namespace StgSharp.Geometries
{
throw new NotImplementedException();
}
void INode.setID<T>(ContainerNode<T> id)
{
if (_id == default(ContainerNode<INode>))
{
_id = id as ContainerNode<INode>;
}
else
{
throw new ArgumentException();
}
}
}
}