struct Units::Dimension

Defined in:

dimension.cr:5
dimension.cr:14

Constant Summary

TOLERANCE = 1e-3

Constructors

Class Method Summary

Instance Method Summary

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) #

[View source]

Class Method Detail

def self.amount #

[View source]
def self.current #

[View source]
def self.length #

[View source]
def self.luminant_intensity #

[View source]
def self.mass #

[View source]
def self.temperature #

[View source]
def self.time #

[View source]

Instance Method Detail

def *(value) : self #

[View source]
def +(other : self) : self #

[View source]
def -(other : self) : self #

[View source]
def /(value) : self #

[View source]
def =~(other : self) #

[View source]
def amount : Float32 #

def clone #

[View source]
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) #

[View source]
def current : Float32 #

def inverse #

[View source]
def length : Float32 #

def luminant_intensity : Float32 #

def mass : Float32 #

def scalar? #

[View source]
def temperature : Float32 #

def time : Float32 #

def to_s(io : IO, force_ascii : Bool | Nil = nil) #
Description copied from struct Struct

Same as #inspect(io).


[View source]