Daily update on 20221025 by Nitload Youmu
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -11,7 +11,7 @@ namespace Debug
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace StgSharp.Control
|
||||
{
|
||||
public class Bind
|
||||
{
|
||||
public void SimpleBind(Point p, GeometryI g)
|
||||
public void Simple(Point p, GeometryI g)
|
||||
{
|
||||
if (g!=null)
|
||||
{
|
||||
@@ -18,12 +18,28 @@ namespace StgSharp.Control
|
||||
}
|
||||
}
|
||||
|
||||
public void ComplexBind(Point p, Circle c)
|
||||
/// <summary>
|
||||
/// 将点绑定在
|
||||
/// </summary>
|
||||
/// <param name="p">绑定的点</param>
|
||||
/// <param name="c">被限定的圆</param>
|
||||
public void Complex(Point p, Circle c)
|
||||
{
|
||||
c.ComplexBind += this.ac;
|
||||
}
|
||||
public void ac(Point p,Circle c)
|
||||
{
|
||||
float r = (float)Math.Sqrt
|
||||
((p.X - c.Center.X) * (p.X - c.Center.X)
|
||||
- (p.Y - c.Center.Y) * (p.Y - c.Center.Y));
|
||||
c.Radius= r;
|
||||
}
|
||||
|
||||
public void Complex(Point p, Line l)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void ComplexBind(Point p, Line l)
|
||||
public void al(Point p, Line l)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -33,6 +33,18 @@ namespace StgSharp.Geometry
|
||||
}
|
||||
}
|
||||
|
||||
public delegate void ComplexBindHandler(Point sender, Circle sender2);
|
||||
|
||||
protected ComplexBindHandler complexBindHandler;
|
||||
|
||||
internal event ComplexBindHandler ComplexBind
|
||||
{
|
||||
add { this.complexBindHandler += value; }
|
||||
remove { this.complexBindHandler -= value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
public virtual void OnRender()
|
||||
{
|
||||
|
||||
@@ -42,4 +54,5 @@ namespace StgSharp.Geometry
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user