Table of Contents

Method GetAabb

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetAabb()

Gets the box with sides along the axes that the spline fills exactly, from its smallest to its largest coordinates.

public GeoRectangle2 GetAabb()

Returns

GeoRectangle2

The box, as an unrotated rectangle.

Remarks

Not the box of the control points, which is larger: the cubic with the control points (0, 0), (100, 150), (200, 150), (300, 0) fills 300 by 112.5, where its control points fill 300 by 150. Each end of a span, and each place where a coordinate stops rising or falling, which is a root of a polynomial of the span found without missing any, is measured; the box is exact to rounding. A rectangle has its centre and size, so its corners can differ from the extremes by a unit in the last place.