Class: FaceCrop::Detector::Point
- Inherits:
-
Object
- Object
- FaceCrop::Detector::Point
- Defined in:
- lib/face_crop.rb
Overview
Point
Instance Attribute Summary collapse
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Point
constructor
A new instance of Point.
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
#x ⇒ Object
Returns the value of attribute x.
80 81 82 |
# File 'lib/face_crop.rb', line 80 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
81 82 83 |
# File 'lib/face_crop.rb', line 81 def y @y end |