/// <summary> /// Constructor. /// </summary> /// <param name="pts">Pointer to list of points this sphere must contain.></param> public FSphere(FVector[] pts) { if (pts.Length > 0) { FBox Box = new FBox(pts); this = new FSphere((Box.Min + Box.Max) / 2, 0); for (int i = 0; i < pts.Length; i++) { float dist = FVector.DistSquared(pts[i], Center); if (dist > W) { W = dist; } } } else { this = default(FSphere); } }