Class: Silicium::Geometry::Point

Inherits:
Struct
  • Object
show all
Defined in:
lib/geometry.rb

Overview

Represents a point as two coordinates in two-dimensional space

Instance Attribute Summary collapse

Instance Attribute Details

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



11
12
13
# File 'lib/geometry.rb', line 11

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



11
12
13
# File 'lib/geometry.rb', line 11

def y
  @y
end