Class: Silicium::Geometry::Point
- Inherits:
-
Struct
- Object
- Struct
- Silicium::Geometry::Point
- Defined in:
- lib/geometry.rb
Overview
Represents a point as two coordinates in two-dimensional space
Instance Attribute Summary collapse
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x
11 12 13 |
# File 'lib/geometry.rb', line 11 def x @x end |
#y ⇒ Object
Returns the value of attribute y
11 12 13 |
# File 'lib/geometry.rb', line 11 def y @y end |