Class: FaceDetect::Landmark

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#xObject (readonly)

Returns the value of attribute x.



3
4
5
# File 'lib/face_detect/landmark.rb', line 3

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



3
4
5
# File 'lib/face_detect/landmark.rb', line 3

def y
  @y
end