如指定pt1和pt2两点,可得出最小点rectMin和最大点rectMax。
Dim rectMin As New Point2d(Math.Min(pt1.X, pt2.X), Math.Min(pt1.Y, pt2.Y))
Dim rectMax As New Point2d(Math.Max(pt1.X, pt2.X), Math.Max(pt1.Y, pt2.Y))
如指定pt1和pt2两点,可得出最小点rectMin和最大点rectMax。
Dim rectMin As New Point2d(Math.Min(pt1.X, pt2.X), Math.Min(pt1.Y, pt2.Y))
Dim rectMax As New Point2d(Math.Max(pt1.X, pt2.X), Math.Max(pt1.Y, pt2.Y))