/// <summary> /// Computes the <see cref="BoundingRectangle" /> from a list of <see cref="Point2" /> structures. /// </summary> /// <param name="points">The points.</param> /// <param name="result">The resulting bounding rectangle.</param> public static void CreateFrom(IReadOnlyList <Point2> points, out BoundingRectangle result) { Point2 minimum; Point2 maximum; PrimitivesHelper.CreateRectangleFromPoints(points, out minimum, out maximum); CreateFrom(minimum, maximum, out result); }
/// <summary> /// Computes the <see cref="RectangleF" /> from a list of <see cref="PointF" /> structures. /// </summary> /// <param name="points">The points.</param> /// <param name="result">The resulting rectangle.</param> public static void CreateFrom(IReadOnlyList <PointF> points, out RectangleF result) { PrimitivesHelper.CreateRectangleFromPoints(points, out PointF minimum, out PointF maximum); RectangleF.CreateFrom(minimum, maximum, out result); }