daily update on 20230105 by nitload youmu

This commit is contained in:
Nitload
2023-01-06 00:53:51 +08:00
parent e464ac56ba
commit 9c2f69ff9f
29 changed files with 192 additions and 18 deletions
@@ -0,0 +1,41 @@
using StgSharp.Logic;
using StgSharp.Geometries;
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Geometries
{
public class Circle : IGeometry
{
private Logic.LinkedListNode<INode> _id;
internal Point _referencePoint;
internal float _vecX;
internal float _vecY;
public Point ReferencePoint
{
get { return _referencePoint; }
}
public float vecX
{
get { return _vecX; }
}
public float vecY
{
get { return _vecY; }
}
public Logic.LinkedListNode<INode> ID
{
get { return _id; }
}
float IGeometry.SetPointArray(Counter<uint> tickCounter)
{
throw new NotImplementedException();
}
}
}
@@ -0,0 +1,24 @@
using StgSharp.Logic;
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Geometries
{
public interface IGeometry:INode
{
public Point ReferencePoint
{
get;
}
public float vecX
{
get;
}
public float SetPointArray(Counter<uint> tickCounter);
}
}
+32 -5
View File
@@ -1,17 +1,44 @@
using StgSharp.Logic;
using StgSharp.Control;
using StgSharp.Logic;
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Geometries
{
public class Line:Geometry,INode
public class Line:IGeometry
{
private Logic.LinkedListNode<INode> _id;
internal Point _referencePoint;
internal float _vecX;
internal float _vecY;
public void SetPointArray()
public Point ReferencePoint
{
get { return _referencePoint; }
}
public float vecX
{
get { return _vecX; }
}
internal float vecY
{
get { return _vecY; }
}
public Logic.LinkedListNode<INode> ID
{
get { return _id; }
}
public float SetPointArray(Counter<uint> tickCounter)
{
return 0.0f;
}
}
}
@@ -5,15 +5,10 @@ using System.Text;
namespace StgSharp.Geometries
{
public class Geometry:INode
{
public class Rectangle
{
public void SetPointArray()
{
}
}
}
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace StgSharp.Geometries
{
public class Square:IGeometry
{
internal Point _referrencePoint;
public Point ReferrencePoint
{
get { return _referrencePoint; }
}
}
}
@@ -4,6 +4,7 @@ using StgSharp.Logic;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Security.Cryptography;
using System.Text;
@@ -11,10 +12,16 @@ namespace StgSharp.Geometries
{
public class Point: INode
{
private Logic.LinkedListNode<INode> _id;
internal float x;
internal float y;
public Logic.LinkedListNode<INode> ID
{
get { return _id; }
}
public float X
{
get