Class: Configs::Project::Display::Point

Inherits:
Object
  • Object
show all
Defined in:
docs/00000_a_root.rb

Overview

Data structure describing a point

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x, y) ⇒ Point

Returns a new instance of Point.



255
256
# File 'docs/00000_a_root.rb', line 255

def initialize(x, y)
end

Instance Attribute Details

#xInteger (readonly)

Get the x coodinate

Returns:

  • (Integer)


251
252
253
# File 'docs/00000_a_root.rb', line 251

def x
  @x
end

#yInteger (readonly)

Get the y coordinate

Returns:

  • (Integer)


254
255
256
# File 'docs/00000_a_root.rb', line 254

def y
  @y
end