Files
stgsharp/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometries/FreeCurve.cs
T

59 lines
1.0 KiB
C#

using StgSharp.Entities;
using StgSharp.Logic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StgSharp.Geometries
{
internal class FreeCurve : Geometry
{
private Point _center;
public Point Center
{
get { return _center; }
set { _center = value; }
}
public FreeCurve(Point c, float[] x, float[] y)
{
if (x.Length==10)
{
_xExpression = x;
}
else
{
throw new Exception("Parameters are too many or too few!");
}
if (y.Length==10)
{
_yExpression = y;
}
else
{
throw new Exception("Parameters are too many or too few!");
}
}
public void Bind(Point p)
{
_center = p;
}
public void OnRender()
{
}
}
}