struct Units::CompileTimeUnit(X, M, L, J, O, I, N, T)
- Units::CompileTimeUnit(X, M, L, J, O, I, N, T)
- Struct
- Value
- Object
Included Modules
Extended Modules
Defined in:
compile_time_unit.crConstructors
-
.new(value : X)
TODO add
protected
again
Class Method Summary
- .from(value, measure : CompileTimeUnit(_, M, L, J, O, I, N, T)) forall M, L, J, O, I, N, T
- .from_amperes(value)
- .from_candela(value)
- .from_kelvin(value)
- .from_kilograms(value)
- .from_meters(value)
- .from_moles(value)
- .from_seconds(value)
Instance Method Summary
- #*(other : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2
- #*(other : AlgebraicUnit)
- #*(other) : CompileTimeUnit
- #**(power : Fix(Exp).class) : CompileTimeUnit forall Exp
- #**(other) : RuntimeUnit
- #+(other : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2
- #+(other : AlgebraicUnit)
- #+(other)
- #-(other : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2
- #-(other : AlgebraicUnit)
- #-(other)
- #- : CompileTimeUnit
- #/(other : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2
- #/(other : AlgebraicUnit)
- #/(other) : CompileTimeUnit
- #cb
- #cbrt
- #dimension : Dimension
- #inverse : CompileTimeUnit
- #left_add(lhs : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2
- #left_add(lhs)
- #left_multiply(lhs : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2
- #left_multiply(lhs)
- #sq
- #sqrt
- #to(measure : CompileTimeUnit)
- #to(measure : AlgebraicUnit)
- #to_amperes
- #to_candela
- #to_kelvin
- #to_kilograms
- #to_meters
- #to_moles
- #to_seconds
Instance methods inherited from module Units::Casting
to(measure : AlgebraicUnit)to(&) to, to_amperes to_amperes, to_candela to_candela, to_days to_days, to_feet to_feet, to_ft to_ft, to_hours to_hours, to_hr to_hr, to_in to_in, to_inches to_inches, to_kelvin to_kelvin, to_kilograms to_kilograms, to_meters to_meters, to_min to_min, to_minutes to_minutes, to_moles to_moles, to_seconds to_seconds, to_yards to_yards, to_yd to_yd, to_years to_years, to_yr to_yr
Instance methods inherited from module Units::AlgebraicUnit(X)
*(other : AlgebraicUnit) : AlgebraicUnit*(other) : AlgebraicUnit *, **(other) : AlgebraicUnit **, +(other : AlgebraicUnit) : AlgebraicUnit
+(other) +, -(other : AlgebraicUnit) : AlgebraicUnit
-(other)
- : AlgebraicUnit -, /(other : AlgebraicUnit) : AlgebraicUnit
/(other) : AlgebraicUnit /, cb cb, cbrt cbrt, dimension : Dimension dimension, inverse : AlgebraicUnit inverse, left_add(lhs) left_add, left_multiply(lhs) left_multiply, left_subtract(lhs) left_subtract, sq sq, sqrt sqrt, to_s(io : IO) : Nil to_s
Constructor Detail
Class Method Detail
def self.from(value, measure : CompileTimeUnit(_, M, L, J, O, I, N, T)) forall M, L, J, O, I, N, T
#
Instance Method Detail
def *(other : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2
#
def +(other : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2
#
def -(other : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2
#
def /(other : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2
#
def left_add(lhs : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2
#
def left_multiply(lhs : CompileTimeUnit(X2, M2, L2, J2, O2, I2, N2, T2)) : CompileTimeUnit forall X2, M2, L2, J2, O2, I2, N2, T2
#