Table of Contents

Method FromBounds

Namespace
LMKit.Graphics.Geometry
Assembly
LM-Kit.NET.dll

FromBounds(IBounds)

Creates a quadrilateral from an axis-aligned IBounds.

public static Quadrilateral FromBounds(IBounds b)

Parameters

b IBounds

The 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 IBounds

The axis-aligned bounds to rotate.

angleDegrees double

Clockwise rotation angle in degrees.

pivot Point

The pivot point to rotate around.

Returns

Quadrilateral

A new Quadrilateral representing the rotated rectangle.