public FPointXY Clone() { FPointXY p = new FPointXY(); p.X = this.X; p.Y = this.Y; return(p); }
/// <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); } }
public CircleFP3() { p1 = new FPointXY(); p2 = new FPointXY(); p3 = new FPointXY(); }
public CircleNorm() { Center = new FPointXY(); }