daily update on 20230322 by nitload youmu, new geometry structure rewritten 70%

This commit is contained in:
Nitload
2023-03-22 20:32:17 +08:00
parent db2ca36fd7
commit eedab82f6e
66 changed files with 1382 additions and 785 deletions
+54 -17
View File
@@ -1,46 +1,83 @@
using StgSharp;
using StgSharp.Math;
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp
{
public class Triangle
public class Triangle :IGeometry
{
internal ContainerNode<INode> _id;
internal ContainerNode<IGeometry> _id;
internal Point _basePoint;
internal Point _refPoint;
internal Point _line1;
internal Point _line2;
internal Point _referencePoint;
internal GetLocationHandler _refMovHandler;
internal GetLocationHandler _line01MovHandler;
internal GetLocationHandler _line02MovHandler;
internal GetLocationHandler _setArrayXHandler;
internal GetLocationHandler _setArrayYHandler;
public Point ReferencePoint
Point IGeometry.BasePoint
{
get { return _referencePoint; }
get { return _basePoint; }
}
public float VecX
Point IGeometry.RefPoint
{
get { return _referencePoint.X; }
get { return _refPoint; }
}
public float VecY
Point IGeometry.RefVec01
{
get { return _referencePoint.Y; }
get { return _refPoint; }
}
Point IGeometry.RefVec02
{
get { return _line1; }
}
GetLocationHandler IGeometry.Vec01Expression
{
get { return _refMovHandler; }
}
GetLocationHandler IGeometry.Vec02Expression
{
get { return _line01MovHandler; }
}
GetLocationHandler IGeometry.Vec03Expression
{
get { return _line02MovHandler; }
}
ContainerNode<IGeometry> INode<IGeometry>.ID
{
get { return _id; }
}
public float SetArrayX(Counter<uint> tickCounter)
void IGeometry.OnRender()
{
return _setArrayXHandler.Invoke(tickCounter);
throw new NotImplementedException();
}
public float SetArrayY(Counter<uint> tickCounter)
float IGeometry.SetArrayX()
{
return _setArrayYHandler.Invoke(tickCounter);
throw new NotImplementedException();
}
float IGeometry.SetArrayY()
{
throw new NotImplementedException();
}
void INode<IGeometry>.setID<T>(ContainerNode<T> id)
{
throw new NotImplementedException();
}
}
}