Class: Mindee::Geometry::MinMax

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

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:



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:



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

def max
  @max
end

#minFloat (readonly)

Minimum

Returns:



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

def min
  @min
end