daily update on 20230322 by nitload youmu, new geometry structure rewritten 70%
This commit is contained in:
@@ -7,18 +7,6 @@ namespace StgSharp.Control
|
||||
{
|
||||
public static class Add
|
||||
{
|
||||
public static void Point(IGeometry geometry)
|
||||
{
|
||||
Point p = new Point();
|
||||
p.getXHandler += geometry.SetArrayX;
|
||||
p.getXHandler += geometry.SetArrayY;
|
||||
TimeLine._cache.pointContainer.Add(p);
|
||||
}
|
||||
|
||||
public static void Line(Point p, float vecX,float vecY)
|
||||
{
|
||||
Line l = new Line(p, vecX, vecY);
|
||||
TimeLine._cache.geometryContainer.Add(l);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,11 +8,11 @@ namespace StgSharp.Control
|
||||
{
|
||||
public static void Point(Point p)
|
||||
{
|
||||
StgSharp.ContainerNode<INode> _cache = p._id;
|
||||
StgSharp.ContainerNode<Point> _cache = p._id;
|
||||
_cache.Previous.Next = _cache.Next;
|
||||
_cache.Next.Previous = _cache.Previous;
|
||||
_cache.Next = default(StgSharp.ContainerNode<INode>);
|
||||
_cache.Previous = default(StgSharp.ContainerNode<INode>);
|
||||
_cache.Next = default;
|
||||
_cache.Previous = default;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user