struct Units::Dimension
- Units::Dimension
- Struct
- Value
- Object
Defined in:
dimension.cr:5dimension.cr:14
Constant Summary
-
TOLERANCE =
1e-3
Constructors
Class Method Summary
Instance Method Summary
- #*(value) : self
- #+(other : self) : self
- #-(other : self) : self
- #/(value) : self
- #=~(other : self)
- #amount : Float32
- #clone
- #copy_with(mass _mass = @mass, length _length = @length, luminant_intensity _luminant_intensity = @luminant_intensity, temperature _temperature = @temperature, current _current = @current, amount _amount = @amount, time _time = @time)
- #current : Float32
- #inverse
- #length : Float32
- #luminant_intensity : Float32
- #mass : Float32
- #scalar?
- #temperature : Float32
- #time : Float32
-
#to_s(io : IO, force_ascii : Bool | Nil = nil)
Same as
#inspect(io)
.
Constructor Detail
def self.new(mass : Float32 = 0, length : Float32 = 0, luminant_intensity : Float32 = 0, temperature : Float32 = 0, current : Float32 = 0, amount : Float32 = 0, time : Float32 = 0)
#
Class Method Detail
Instance Method Detail
def copy_with(mass _mass = @mass, length _length = @length, luminant_intensity _luminant_intensity = @luminant_intensity, temperature _temperature = @temperature, current _current = @current, amount _amount = @amount, time _time = @time)
#
def to_s(io : IO, force_ascii : Bool | Nil = nil)
#
Description copied from struct Struct
Same as #inspect(io)
.