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

Inherits:
Object
  • Object
show all
Defined in:
scripts/00021 ProjectConfig.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.



47
48
49
50
# File 'scripts/00021 ProjectConfig.rb', line 47

def initialize(x, y)
  @x = x
  @y = y
end

Instance Attribute Details

#xInteger (readonly)

Get the x coodinate

Returns:



41
42
43
# File 'scripts/00021 ProjectConfig.rb', line 41

def x
  @x
end

#yInteger (readonly)

Get the y coordinate

Returns:



45
46
47
# File 'scripts/00021 ProjectConfig.rb', line 45

def y
  @y
end