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
+21 -9
View File
@@ -1,6 +1,5 @@
using GLFWDotNet;
using StgSharp.Control;
using StgSharp.Logic;
using StgSharp;
using System;
using System.Collections.Generic;
using System.Drawing;
@@ -8,11 +7,11 @@ using System.Security.Cryptography;
using System.Text;
namespace StgSharp.Geometries
namespace StgSharp
{
public class Point: INode
{
private Logic.ContainerNode<Point> _id;
internal StgSharp.ContainerNode<INode> _id;
internal float _x;
internal float _y;
@@ -20,23 +19,36 @@ namespace StgSharp.Geometries
public GetLocationHandler getXHandler;
public GetLocationHandler getYHandler;
ContainerNode<INode> INode.ID
{
get { return this._id; }
}
public float X
{
get
{
return getXHandler(TimeLine.tickCounter);
return getXHandler(Control.TimeLine.tickCounter);
}
}
public float Y
{
get
{
return getYHandler(TimeLine.tickCounter);
return getYHandler(Control.TimeLine.tickCounter);
}
}
void INode.setID<T>(ContainerNode<T> id)
{
if (id == null)
{
_id = id as ContainerNode<INode>;
}
else
{
throw new ArgumentNullException("Cannot set id teice!");
}
}
}
}