public RectangleJ GetBoundingRectange()
{
float x1 = GetStartPoint()[Vector.I1];
float y1 = GetStartPoint()[Vector.I2];
float x2 = GetEndPoint()[Vector.I1];
float y2 = GetEndPoint()[Vector.I2];
return new RectangleJ(Math.Min(x1, x2), Math.Min(y1, y2), Math.Abs(x2-x1), Math.Abs(y2-y1));
}