Class: Geometry.Shapes.Rectangle

Geometry Rectangle Shape Class

Summary:
  • Represents a rectangle drawn on a grid

Usage

Constructs an instance of Rectangle from the supplied width, height, and origin

                    
                        new Geometry.Shapes.Rectangle(width, height, originopt)
                    
                
Parameters:
Name Type Default Description
width Number
                        
                    

how wide the rectangle should be

height Number
                        
                    

how high the rectangle should be

originopt Geometry.Utils.Point
                        Point(0, 0)
                    

which point on the grid to start the rectangle from

Properties:
Name Type Description
width Number

the horizontal width of the rectangle

height Number

the vertical height of the rectangle

Methods