Class: MoondreamClient::Point::Coordinate

Inherits:
Object
  • Object
show all
Defined in:
lib/moondream-client/point.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x:, y:) ⇒ Coordinate

rubocop:disable Naming/MethodParameterName



11
12
13
14
# File 'lib/moondream-client/point.rb', line 11

def initialize(x:, y:) # rubocop:disable Naming/MethodParameterName
  @x = x
  @y = y
end

Instance Attribute Details

#xFloat (readonly)

Returns Normalized x coordinate (0.0..1.0).

Returns:

  • (Float)

    Normalized x coordinate (0.0..1.0)



7
8
9
# File 'lib/moondream-client/point.rb', line 7

def x
  @x
end

#yFloat (readonly)

Returns Normalized y coordinate (0.0..1.0).

Returns:

  • (Float)

    Normalized y coordinate (0.0..1.0)



9
10
11
# File 'lib/moondream-client/point.rb', line 9

def y
  @y
end