RectExtensionsCreateEnvelope Method |
Create the minimal bounding rectangle around a polygon.
Namespace:
Ptv.XServer.Controls.Map.Tools
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax public static Rect CreateEnvelope(
IEnumerable<Point> points
)
Public Shared Function CreateEnvelope (
points As IEnumerable(Of Point)
) As Rect
public:
static Rect CreateEnvelope(
IEnumerable<Point>^ points
)
static member CreateEnvelope :
points : IEnumerable<Point> -> Rect
Parameters
- points
- Type: System.Collections.GenericIEnumerablePoint
Set of points defining the polygon.
Return Value
Type:
RectMinimal bounding rectangle of the polygon.
See Also