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.



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

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

Instance Attribute Details

#xObject

Returns the value of attribute x.



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

def x
  @x
end

#yObject

Returns the value of attribute y.



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

def y
  @y
end