Class: Mindee::Geometry::MinMax

Inherits:
Object
  • Object
show all
Defined in:
lib/mindee/geometry/min_max.rb

Overview

A set of minimum and maximum values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(min, max) ⇒ MinMax

Returns a new instance of MinMax.

Parameters:

  • min (Float)
  • max (Float)


17
18
19
20
# File 'lib/mindee/geometry/min_max.rb', line 17

def initialize(min, max)
  @min = min
  @max = max
end

Instance Attribute Details

#maxFloat (readonly)

Maximum

Returns:

  • (Float)


13
14
15
# File 'lib/mindee/geometry/min_max.rb', line 13

def max
  @max
end

#minFloat (readonly)

Minimum

Returns:

  • (Float)


10
11
12
# File 'lib/mindee/geometry/min_max.rb', line 10

def min
  @min
end