Convenience constructors#
- class samson.SBQuantity.electronvolt(*args, **kwargs)#
Bases:
Overloaded function.
electronvolt(v: float) -> samson.SBQuantity.unitsElectronvolt
Constructs the physical unit ‘electronvolt’ with the given value v
electronvolt(q: samson.SBQuantity.unitsElectronvolt) -> samson.SBQuantity.unitsElectronvolt
Constructs the physical unit ‘electronvolt’ from the given physical unit u
- class samson.SBQuantity.eV(*args, **kwargs)#
Bases:
Overloaded function.
eV(v: float) -> samson.SBQuantity.unitsElectronvolt
Constructs the physical unit ‘eV’ with the given value v
eV(q: samson.SBQuantity.unitsElectronvolt) -> samson.SBQuantity.unitsElectronvolt
Constructs the physical unit ‘eV’ from the given physical unit u