diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/0dbe9423-5648-42a6-868a-07e192177a55.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/0dbe9423-5648-42a6-868a-07e192177a55.vsidx
new file mode 100644
index 00000000..4292bc29
Binary files /dev/null and b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/0dbe9423-5648-42a6-868a-07e192177a55.vsidx differ
diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/3171f494-7802-486e-87b1-e898238936fb.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/3171f494-7802-486e-87b1-e898238936fb.vsidx
deleted file mode 100644
index 7f7d9612..00000000
Binary files a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/3171f494-7802-486e-87b1-e898238936fb.vsidx and /dev/null differ
diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/86d75f81-ae0b-4632-b9bc-9d63c9d85de4.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/86d75f81-ae0b-4632-b9bc-9d63c9d85de4.vsidx
new file mode 100644
index 00000000..d001e6f6
Binary files /dev/null and b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/86d75f81-ae0b-4632-b9bc-9d63c9d85de4.vsidx differ
diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/cf6c5db5-7303-4785-b356-936e4ee484ca.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/cf6c5db5-7303-4785-b356-936e4ee484ca.vsidx
deleted file mode 100644
index 686fd024..00000000
Binary files a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/cf6c5db5-7303-4785-b356-936e4ee484ca.vsidx and /dev/null differ
diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/dd61abb7-a480-4b18-8c49-074e9c0c8d37.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/dd61abb7-a480-4b18-8c49-074e9c0c8d37.vsidx
deleted file mode 100644
index 3a2548cc..00000000
Binary files a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/dd61abb7-a480-4b18-8c49-074e9c0c8d37.vsidx and /dev/null differ
diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/f970f112-8fb6-4845-8c71-2167b1ad0e31.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/f970f112-8fb6-4845-8c71-2167b1ad0e31.vsidx
new file mode 100644
index 00000000..24756d33
Binary files /dev/null and b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/f970f112-8fb6-4845-8c71-2167b1ad0e31.vsidx differ
diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/v17/.suo b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/v17/.suo
index 15e6fd69..6d4d010c 100644
Binary files a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/v17/.suo and b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/v17/.suo differ
diff --git a/源代码/.Net Framework/Stg_Sharp/Debug/Debug.csproj b/源代码/.Net Framework/Stg_Sharp/Debug/Debug.csproj
index ad6328c2..664fc622 100644
--- a/源代码/.Net Framework/Stg_Sharp/Debug/Debug.csproj
+++ b/源代码/.Net Framework/Stg_Sharp/Debug/Debug.csproj
@@ -33,6 +33,9 @@
4
+
+ ..\packages\OpenTK.3.3.3\lib\net20\OpenTK.dll
+
@@ -48,6 +51,8 @@
+
+
diff --git a/源代码/.Net Framework/Stg_Sharp/Debug/OpenTK.dll.config b/源代码/.Net Framework/Stg_Sharp/Debug/OpenTK.dll.config
new file mode 100644
index 00000000..7098d39e
--- /dev/null
+++ b/源代码/.Net Framework/Stg_Sharp/Debug/OpenTK.dll.config
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/源代码/.Net Framework/Stg_Sharp/Debug/Program.cs b/源代码/.Net Framework/Stg_Sharp/Debug/Program.cs
index 0120e0bf..8b4845c5 100644
--- a/源代码/.Net Framework/Stg_Sharp/Debug/Program.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Debug/Program.cs
@@ -1,4 +1,11 @@
-using StgSharp;
+using OpenTK;
+using OpenTK.Graphics.ES10;
+using OpenTK.Graphics.ES11;
+using OpenTK.Graphics.ES20;
+using OpenTK.Graphics.ES30;
+using OpenTK.Graphics.OpenGL;
+using OpenTK.Graphics.OpenGL4;
+using StgSharp;
using StgSharp.Geometry;
using System;
using System.Collections.Generic;
@@ -11,21 +18,10 @@ namespace Debug
{
internal class Program
{
- static void Main(string[] args)
- {
- MyClass a1=new MyClass();
- MyClass b1 = a1;
-
- b1.MyProperty = 15;
- Console.WriteLine(a1.MyProperty);
- }
}
- public class MyClass
- {
- public int MyProperty { get; set; }
- }
+
}
diff --git a/源代码/.Net Framework/Stg_Sharp/Debug/obj/Debug/Debug.csproj.AssemblyReference.cache b/源代码/.Net Framework/Stg_Sharp/Debug/obj/Debug/Debug.csproj.AssemblyReference.cache
index adf0e931..882d2ba1 100644
Binary files a/源代码/.Net Framework/Stg_Sharp/Debug/obj/Debug/Debug.csproj.AssemblyReference.cache and b/源代码/.Net Framework/Stg_Sharp/Debug/obj/Debug/Debug.csproj.AssemblyReference.cache differ
diff --git a/源代码/.Net Framework/Stg_Sharp/Debug/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/源代码/.Net Framework/Stg_Sharp/Debug/obj/Debug/DesignTimeResolveAssemblyReferences.cache
new file mode 100644
index 00000000..8499c13a
Binary files /dev/null and b/源代码/.Net Framework/Stg_Sharp/Debug/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ
diff --git a/源代码/.Net Framework/Stg_Sharp/Debug/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/源代码/.Net Framework/Stg_Sharp/Debug/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
index 5bcb6297..5de2f885 100644
Binary files a/源代码/.Net Framework/Stg_Sharp/Debug/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/源代码/.Net Framework/Stg_Sharp/Debug/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ
diff --git a/源代码/.Net Framework/Stg_Sharp/Debug/packages.config b/源代码/.Net Framework/Stg_Sharp/Debug/packages.config
new file mode 100644
index 00000000..bf655677
--- /dev/null
+++ b/源代码/.Net Framework/Stg_Sharp/Debug/packages.config
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Bind.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Bind.cs
deleted file mode 100644
index 775f1b7a..00000000
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Bind.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using StgSharp.Geometry;
-using StgSharp.Logic;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace StgSharp.Control
-{
- public class Bind
- {
- public void Simple(IPoint p, IGeometry g)
- {
- if (g!=null)
- {
- g.Bind(p);
- }
- }
-
- ///
- /// 将点绑定在
- ///
- /// 绑定的点
- /// 被限定的圆
- public void Complex(IPoint p, Circle c)
- {
- c._bindPoint = p;
- }
- public void Complex(IPoint p, Line l)
- {
- l.EndingPoint = p;
- }
- }
-}
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/ComplexOperationHandler.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/ComplexOperationHandler.cs
index ce2d731c..f9768418 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/ComplexOperationHandler.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/ComplexOperationHandler.cs
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Geometry
+namespace StgSharp.Geometries
{
public delegate void ComplexOperationHandler();
}
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Create.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Create.cs
index cf41450d..1c090b00 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Create.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Create.cs
@@ -5,22 +5,17 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Headers;
+using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Control
{
- static public class Create
+ static public partial class Create
{
-
private static LinkedObject cache;
- public static void Geometry(Point center, float radius, float angle, int num)
- {
-
- }
-
///
/// 创建一个子弹并将其绑定在一个指定的点上
///
@@ -73,10 +68,6 @@ namespace StgSharp.Control
}
-
-
-
-
///
/// 创建一个简单点,并设置其速度和初始角度
///
@@ -93,9 +84,63 @@ namespace StgSharp.Control
Pool.pointContainer.Add(p);
}
-
+ ///
+ /// 通过圆心与半径定义一个圆
+ ///
+ ///
+ ///
public static void Circle(Point c, float r)
- {
+ {
+ Circle o = new Circle(c,r,Pool.tickCounter);
+ Pool.geometryContainer.Add(o);
}
+
+ ///
+ /// 通过圆心和圆上一点定义一个圆
+ ///
+ ///
+ ///
+ public static void Circle(Point c, Point s)
+ {
+ Circle o = new Circle(c, s,Pool.tickCounter);
+ Pool.geometryContainer.Add(o);
+ }
+
+ ///
+ /// 通过起点和终点定义一条直线
+ ///
+ ///
+ ///
+ public static void Line(Point b, Point e)
+ {
+ Line l = new Line(b,e);
+ Pool.geometryContainer.Add(l);
+ }
+
+
+ ///
+ /// 创建一组傅里叶展开式定义的圆阵列
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static void Fourier(Point c, float[] radiuses, float[] angles, float[] rotateFunc)
+ {
+ Point o;
+ Circle circle;
+ int length = radiuses.Length;
+ for (int i = 0; i rightCollector
= new Logic.LinkedList(collectCounter);
+ internal static Bullet bulletCache;
internal static Counter bulletCounter
=new Counter();
internal static Logic.LinkedList bulletContainer
= new Logic.LinkedList(bulletCounter);
+ internal static Entity entityCache;
internal static Counter entityCounter
=new Counter();
- internal static Logic.LinkedList entityContainer
- = new Logic.LinkedList(entityCounter);
+ internal static Logic.LinkedList entityContainer
+ = new Logic.LinkedList(entityCounter);
+ internal static Geometries.Geometry geometryCache;
internal static Counter gemoetryCounter
=new Counter();
- internal static Logic.LinkedList geometryContainer
- = new Logic.LinkedList(gemoetryCounter);
+ internal static Logic.LinkedList geometryContainer
+ = new Logic.LinkedList(gemoetryCounter);
+ internal static Point pointCache;
internal static Counter pointCounter
=new Counter();
internal static Logic.LinkedList pointContainer
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Set.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Set.cs
new file mode 100644
index 00000000..7efac83e
--- /dev/null
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Set.cs
@@ -0,0 +1,15 @@
+using StgSharp.Geometry;
+using StgSharp.Logic;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace StgSharp.Control
+{
+ public class Set
+ {
+
+ }
+}
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Bullet.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Bullet.cs
similarity index 97%
rename from 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Bullet.cs
rename to 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Bullet.cs
index 53db4aa2..6e93b207 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Bullet.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Bullet.cs
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Entity
+namespace StgSharp.Entities
{
public class Bullet : LinkedObject
{
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Enemy.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Enemy.cs
similarity index 96%
rename from 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Enemy.cs
rename to 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Enemy.cs
index d4df98cc..89bfd2e9 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Enemy.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Enemy.cs
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Entity
+namespace StgSharp.Entities
{
internal class Enemy:LinkedObject
{
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Entity.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Entity.cs
similarity index 87%
rename from 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Entity.cs
rename to 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Entity.cs
index c2d860aa..677a0741 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Entity.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Entity.cs
@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Entity
+namespace StgSharp.Entities
{
internal class Entity:LinkedObject
{
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Launcher.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Launcher.cs
similarity index 85%
rename from 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Launcher.cs
rename to 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Launcher.cs
index ebd38bc4..9e66eaf5 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Launcher.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Launcher.cs
@@ -5,13 +5,13 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Entity
+namespace StgSharp.Entities
{
internal unsafe class Launcher
{
- private IPoint _location;
+ private Point _location;
- public IPoint Location
+ public Point Location
{
get { return _location; }
set { _location = value; }
@@ -40,12 +40,11 @@ namespace StgSharp.Entity
set { _launchType = value; }
}
- public Launcher(Bullet launchType, IPoint loc)
+ public Launcher(Bullet launchType, Point loc)
{
_launchType = launchType;
_location = loc;
}
-
public void Launch()
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Player.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Player.cs
similarity index 99%
rename from 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Player.cs
rename to 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Player.cs
index 9f8daac7..1dd75929 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Player.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Player.cs
@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Entity
+namespace StgSharp.Entities
{
internal class Player
{
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/RenderedGeometry.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/RenderedGeometry.cs
new file mode 100644
index 00000000..f1003134
--- /dev/null
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/RenderedGeometry.cs
@@ -0,0 +1,46 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace StgSharp.Entities
+{
+ public class RenderedGeometry
+ {
+ internal Geometry.Geometry route;
+ public Geometry.Geometry Route
+ {
+ get { return route; }
+ set { route = value; }
+ }
+
+ internal float _rangeBegin;
+ internal float _rangeEnd;
+ public float Range
+ {
+ get { return _rangeBegin; }
+ set { _rangeBegin = value; }
+ }
+
+ public float RangeEnd
+ {
+ get { return _rangeEnd; }
+ set { _rangeEnd = value; }
+ }
+
+ public float[][] GetVertexArray()
+ {
+ int length = (int)(_rangeEnd - _rangeBegin);
+ float[][] result = new float[length][];
+ for (int i = 0; i < length; i++)
+ {
+
+ }
+
+ //计算点
+
+ return result;
+ }
+ }
+}
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Reward.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Reward.cs
similarity index 95%
rename from 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Reward.cs
rename to 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Reward.cs
index 205d7333..f522d64c 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entity/Reward.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Entities/Reward.cs
@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Entity
+namespace StgSharp.Entities
{
internal class Reward:LinkedObject
{
@@ -77,6 +77,7 @@ namespace StgSharp.Entity
{
_player = player;
_v *= 2.0f;
+ //后期改为由行为包控制
}
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/Circle.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/Circle.cs
similarity index 89%
rename from 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/Circle.cs
rename to 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/Circle.cs
index 01b70d9f..99e68666 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/Circle.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/Circle.cs
@@ -1,4 +1,4 @@
-using StgSharp.Entity;
+using StgSharp.Entities;
using StgSharp.Logic;
using System;
using System.Collections.Generic;
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Geometry
+namespace StgSharp.Geometries
{
public unsafe class Circle :Geometry
{
@@ -53,6 +53,25 @@ namespace StgSharp.Geometry
set { _angle = value; }
}
+ public new float[] XExpression
+ {
+ get
+ {
+ //计算圆的参数方程的泰勒展开式
+ return _xExpression;
+ }
+
+ }
+
+ public new float[] YExpression
+ {
+ get
+ {
+ //计算圆的参数方程的泰勒展开式
+ return _yExpression;
+ }
+ }
+
private float[] _rotateFunc = new float[10];
private float[] RotateFunc
{
@@ -123,10 +142,12 @@ namespace StgSharp.Geometry
///
/// 作为圆心的点
/// 在圆周上的点
- public Circle(Point c,Point b)
+ public Circle(Point c,Point b,Counter tickCounter)
{
this._center = c;
this. _bindPoint = b;
+ this.tickCounter = tickCounter;
+ this.beginTick = tickCounter.Value;
}
public void SetMotion(float[] rFunc, float[] roFunc)
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/FreeCurve.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/FreeCurve.cs
similarity index 72%
rename from 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/FreeCurve.cs
rename to 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/FreeCurve.cs
index b7918ded..4058b664 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/FreeCurve.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/FreeCurve.cs
@@ -1,4 +1,4 @@
-using StgSharp.Entity;
+using StgSharp.Entities;
using StgSharp.Logic;
using System;
using System.Collections.Generic;
@@ -6,27 +6,12 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Geometry
+namespace StgSharp.Geometries
{
internal class FreeCurve : Geometry
{
private Point _center;
- private float[] _xExpression;
- private float[] _yExpression;
-
- public float[] XExpression
- {
- get { return _xExpression; }
- set { _xExpression = value; }
- }
-
- public float[] YExpression
- {
- get { return _yExpression; }
- set { _yExpression = value; }
-
- }
public Point Center
{
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/Geometry.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/Geometry.cs
similarity index 52%
rename from 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/Geometry.cs
rename to 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/Geometry.cs
index 70453860..26f0f835 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/Geometry.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/Geometry.cs
@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Geometry
+namespace StgSharp.Geometries
{
public class Geometry:LinkedObject
{
@@ -17,5 +17,22 @@ namespace StgSharp.Geometry
{
return g.Previous as Geometry;
}
+
+
+ internal float[] _xExpression;
+ internal float[] _yExpression;
+
+ public float[] XExpression
+ {
+ get { return _xExpression; }
+ set { _xExpression = value; }
+ }
+
+ public float[] YExpression
+ {
+ get { return _yExpression; }
+ set { _yExpression = value; }
+
+ }
}
}
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/Line.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/Line.cs
similarity index 98%
rename from 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/Line.cs
rename to 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/Line.cs
index 917e1fd9..169df44a 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/Line.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/Line.cs
@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Geometry
+namespace StgSharp.Geometries
{
public class Line:Geometry
{
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/Point.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/Point.cs
similarity index 96%
rename from 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/Point.cs
rename to 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/Point.cs
index cc80059a..d8577ace 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/Point.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/Point.cs
@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Geometry
+namespace StgSharp.Geometries
{
public class Point:LinkedObject
{
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/PointCommon.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/PointCommon.cs
similarity index 97%
rename from 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/PointCommon.cs
rename to 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/PointCommon.cs
index 5c83fea1..a96ed966 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/PointCommon.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/PointCommon.cs
@@ -1,4 +1,4 @@
-using StgSharp.Entity;
+using StgSharp.Entities;
using StgSharp.Logic;
using System;
using System.Collections.Generic;
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Geometry
+namespace StgSharp.Geometries
{
internal class PointCommon : Point
{
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/PointOnCircle.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/PointOnCircle.cs
similarity index 95%
rename from 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/PointOnCircle.cs
rename to 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/PointOnCircle.cs
index 1e568715..1c0cce0f 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/PointOnCircle.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/PointOnCircle.cs
@@ -1,4 +1,4 @@
-using StgSharp.Entity;
+using StgSharp.Entities;
using StgSharp.Logic;
using System;
using System.Collections.Generic;
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Geometry
+namespace StgSharp.Geometries
{
public class PointOnCircle :Point
{
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/PointOnLine.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/PointOnLine.cs
similarity index 95%
rename from 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/PointOnLine.cs
rename to 源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/PointOnLine.cs
index f499dc04..80c6cede 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/PointOnLine.cs
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/PointOnLine.cs
@@ -1,4 +1,4 @@
-using StgSharp.Entity;
+using StgSharp.Entities;
using StgSharp.Logic;
using System;
using System.Collections.Generic;
@@ -6,7 +6,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
-namespace StgSharp.Geometry
+namespace StgSharp.Geometries
{
public class PointOnLine : Point
{
diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/StgSharp.csproj b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/StgSharp.csproj
index 1ed11673..b06c2d3d 100644
--- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/StgSharp.csproj
+++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/StgSharp.csproj
@@ -45,26 +45,27 @@
-
+
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/源代码/STG_Sharp.eapx b/源代码/STG_Sharp.eapx
index 04e27d7f..dd337b49 100644
Binary files a/源代码/STG_Sharp.eapx and b/源代码/STG_Sharp.eapx differ