예제 #1
0
        public FPointXY Clone()
        {
            FPointXY p = new FPointXY();

            p.X = this.X;
            p.Y = this.Y;
            return(p);
        }
예제 #2
0
 /// <summary>
 /// 判断任意点是否在标准圆内
 /// </summary>
 /// <param name="p">任意点</param>
 /// <param name="CirNorm">标准圆</param>
 /// <returns>true:在圆内 false:在圆外</returns>
 public static bool Contains(FPointXY p, CircleNorm CirNorm)
 {
     if ((CirNorm.Center.X - p.X) * (CirNorm.Center.X - p.X) + (CirNorm.Center.Y - p.Y) * (CirNorm.Center.Y - p.Y) < CirNorm.Radius * CirNorm.Radius)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #3
0
 public CircleFP3()
 {
     p1 = new FPointXY();
     p2 = new FPointXY();
     p3 = new FPointXY();
 }
예제 #4
0
 public CircleNorm()
 {
     Center = new FPointXY();
 }