Class: FaceDetect::Landmark
- Inherits:
-
Object
- Object
- FaceDetect::Landmark
- Defined in:
- lib/face_detect/landmark.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Landmark
constructor
A new instance of Landmark.
Constructor Details
#initialize(x, y) ⇒ Landmark
Returns a new instance of Landmark.
5 6 7 8 |
# File 'lib/face_detect/landmark.rb', line 5 def initialize(x, y) @x = x.to_f @y = y.to_f end |
Instance Attribute Details
#x ⇒ Object (readonly)
Returns the value of attribute x.
3 4 5 |
# File 'lib/face_detect/landmark.rb', line 3 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
3 4 5 |
# File 'lib/face_detect/landmark.rb', line 3 def y @y end |