daily update on 20230120 by nitload youmu, struct of project fixed, math lib created
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user