Sometimes we need a Minimum Area of encasing rectangle for some objects (especially for curves), but AutoCAD just supplies a way to find the boundingBox ,and this boundingBox is not the minimum Area ,what more ,for spline ,this boundingBox is a little different from its actual encasing rectangle.
I worked many nights, then studied the algorithms from internet and books, I got this algorithm,then share it with all the friends.
Here is the source code,and demo.
other day, I will introduce the algorithm and post an Arx--it's really fast.