Method FromBounds
FromBounds(IBounds)
Creates a quadrilateral from an axis-aligned IBounds.
public static Quadrilateral FromBounds(IBounds b)
Parameters
b
IBoundsThe axis-aligned bounds to convert.
Returns
- Quadrilateral
A new Quadrilateral with corners matching the bounds edges.
FromBounds(IBounds, double, Point)
Creates a quadrilateral by rotating axis-aligned bounds about a given pivot point.
public static Quadrilateral FromBounds(IBounds b, double angleDegrees, Point pivot)
Parameters
b
IBoundsThe axis-aligned bounds to rotate.
angleDegrees
doubleClockwise rotation angle in degrees.
pivot
PointThe pivot point to rotate around.
Returns
- Quadrilateral
A new Quadrilateral representing the rotated rectangle.