Class: FaceCrop::Detector::Point

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

Overview

Point

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x, y) ⇒ Point

Returns a new instance of Point.



81
82
83
# File 'lib/face_crop.rb', line 81

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

Instance Attribute Details

#xObject

Returns the value of attribute x.



79
80
81
# File 'lib/face_crop.rb', line 79

def x
  @x
end

#yObject

Returns the value of attribute y.



80
81
82
# File 'lib/face_crop.rb', line 80

def y
  @y
end