Class: Geom.Bounds2D
Overview
This class represents a bounding box in a plane.
Instance Method Summary # collapse
-
#Bounds2D()
-
#Bounds2D(bl, tr)
-
#Bounds2D(blx, bly, width, height)
-
#bottom_left() ⇒ Geom.Point2D
The bottom_left method returns the bottom left corner of the Bounds2D.
-
#empty() ⇒ Boolean
The empty method returns true of the box is empty.
-
#height() ⇒ Number
The height method returns the height of the Bounds2D.
-
#middle() ⇒ Geom.Point2D
The middle method returns the middle of the Bounds2D.
-
#top_right() ⇒ Geom.Point2D
The top_right method returns the top right corner of the Bounds2D.
-
#width() ⇒ Number
The width method returns the width of the Bounds2D.
↑ #Bounds2D()
↑ #Bounds2D(bl, tr)
↑ #Bounds2D(blx, bly, width, height)
↑ #bottom_left() ⇒ Geom.Point2D
The bottom_left method returns the bottom left corner of the Bounds2D.
↑ #empty() ⇒ Boolean
The empty method returns true of the box is empty.
↑ #height() ⇒ Number
The height method returns the height of the Bounds2D.
↑ #middle() ⇒ Geom.Point2D
The middle method returns the middle of the Bounds2D.
↑ #top_right() ⇒ Geom.Point2D
The top_right method returns the top right corner of the Bounds2D.
↑ #width() ⇒ Number
The width method returns the width of the Bounds2D.
Comments
0 comments
Please sign in to leave a comment.