Class: Geometry::SizedSquare
Overview
A Square created with an origin point and a size
Instance Attribute Summary
Attributes inherited from Square
Instance Method Summary collapse
-
#initialize(origin, size) ⇒ SizedSquare
constructor
A new instance of SizedSquare.
Methods inherited from Square
Constructor Details
#initialize(origin, size) ⇒ SizedSquare
Returns a new instance of SizedSquare.
108 109 110 111 |
# File 'lib/geometry/square.rb', line 108 def initialize(origin, size) @origin = Point[origin] @size = size end |