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