Class PolygonExtensions
Contains extension methods for Polygons
Inheritance
System.Object
PolygonExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Ladybug
Assembly: ladybug.dll
Syntax
public static class PolygonExtensions
Methods
| Improve this Doc View SourceToRectangle(Polygon, Boolean)
Convert this Polygon to a rectangle using its outer bounds.
Declaration
public static Rectangle ToRectangle(this Polygon p, bool useBoundsAsFallback = false)
Parameters
Type | Name | Description |
---|---|---|
Polygon | p | |
System.Boolean | useBoundsAsFallback |
Returns
Type | Description |
---|---|
Microsoft.Xna.Framework.Rectangle |
Remarks
If polygon is not already rectangular, will return the smallest possible rectangle containing the polygon