Package org.djunits.value.vdouble.scalar
Class SIScalar
java.lang.Object
java.lang.Number
org.djunits.value.base.Scalar<U,S>
org.djunits.value.vdouble.scalar.base.DoubleScalar<U,R>
org.djunits.value.vdouble.scalar.base.DoubleScalarRel<SIUnit,SIScalar>
org.djunits.value.vdouble.scalar.SIScalar
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<SIScalar>,Relative<SIUnit,,SIScalar> Value<SIUnit,SIScalar>
@Generated(value="org.djunits.generator.GenerateDJUNIT",
date="2025-09-06T15:16:28.380798Z")
public class SIScalar
extends DoubleScalarRel<SIUnit,SIScalar>
Easy access methods for the generic Relative SI DoubleScalar.
Copyright (c) 2013-2025 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
All rights reserved.
BSD-style license. See DJUNITS License.
- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
-
Field Summary
Fields inherited from class org.djunits.value.vdouble.scalar.base.DoubleScalar
si -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <U extends Unit<U>,S extends DoubleScalarRel<U, S>>
Sas(U displayUnit) Return the current scalar transformed to a scalar in the given unit.final AbsorbedDoseReturn the current scalar as a absorbeddose.final AbsorbedDoseasAbsorbedDose(AbsorbedDoseUnit displayUnit) Return the current scalar as a absorbeddose, and provide a display unit.final AccelerationReturn the current scalar as a acceleration.final AccelerationasAcceleration(AccelerationUnit displayUnit) Return the current scalar as a acceleration, and provide a display unit.final AmountOfSubstanceReturn the current scalar as a amountofsubstance.final AmountOfSubstanceasAmountOfSubstance(AmountOfSubstanceUnit displayUnit) Return the current scalar as a amountofsubstance, and provide a display unit.final AngleasAngle()Return the current scalar as a angle.final AngleReturn the current scalar as a angle, and provide a display unit.final AngularAccelerationReturn the current scalar as a angularacceleration.final AngularAccelerationasAngularAcceleration(AngularAccelerationUnit displayUnit) Return the current scalar as a angularacceleration, and provide a display unit.final AngularVelocityReturn the current scalar as a angularvelocity.final AngularVelocityasAngularVelocity(AngularVelocityUnit displayUnit) Return the current scalar as a angularvelocity, and provide a display unit.final AreaasArea()Return the current scalar as a area.final AreaReturn the current scalar as a area, and provide a display unit.final CatalyticActivityReturn the current scalar as a catalyticactivity.final CatalyticActivityasCatalyticActivity(CatalyticActivityUnit displayUnit) Return the current scalar as a catalyticactivity, and provide a display unit.final DensityReturn the current scalar as a density.final DensityasDensity(DensityUnit displayUnit) Return the current scalar as a density, and provide a display unit.final DimensionlessReturn the current scalar as a dimensionless.final DimensionlessasDimensionless(DimensionlessUnit displayUnit) Return the current scalar as a dimensionless, and provide a display unit.final DurationReturn the current scalar as a duration.final DurationasDuration(DurationUnit displayUnit) Return the current scalar as a duration, and provide a display unit.final ElectricalCapacitanceReturn the current scalar as a electricalcapacitance.final ElectricalCapacitanceasElectricalCapacitance(ElectricalCapacitanceUnit displayUnit) Return the current scalar as a electricalcapacitance, and provide a display unit.final ElectricalChargeReturn the current scalar as a electricalcharge.final ElectricalChargeasElectricalCharge(ElectricalChargeUnit displayUnit) Return the current scalar as a electricalcharge, and provide a display unit.final ElectricalConductanceReturn the current scalar as a electricalconductance.final ElectricalConductanceasElectricalConductance(ElectricalConductanceUnit displayUnit) Return the current scalar as a electricalconductance, and provide a display unit.final ElectricalCurrentReturn the current scalar as a electricalcurrent.final ElectricalCurrentasElectricalCurrent(ElectricalCurrentUnit displayUnit) Return the current scalar as a electricalcurrent, and provide a display unit.final ElectricalInductanceReturn the current scalar as a electricalinductance.final ElectricalInductanceasElectricalInductance(ElectricalInductanceUnit displayUnit) Return the current scalar as a electricalinductance, and provide a display unit.final ElectricalPotentialReturn the current scalar as a electricalpotential.final ElectricalPotentialasElectricalPotential(ElectricalPotentialUnit displayUnit) Return the current scalar as a electricalpotential, and provide a display unit.final ElectricalResistanceReturn the current scalar as a electricalresistance.final ElectricalResistanceasElectricalResistance(ElectricalResistanceUnit displayUnit) Return the current scalar as a electricalresistance, and provide a display unit.final EnergyasEnergy()Return the current scalar as a energy.final EnergyasEnergy(EnergyUnit displayUnit) Return the current scalar as a energy, and provide a display unit.final EquivalentDoseReturn the current scalar as a equivalentdose.final EquivalentDoseasEquivalentDose(EquivalentDoseUnit displayUnit) Return the current scalar as a equivalentdose, and provide a display unit.final FlowMassReturn the current scalar as a flowmass.final FlowMassasFlowMass(FlowMassUnit displayUnit) Return the current scalar as a flowmass, and provide a display unit.final FlowVolumeReturn the current scalar as a flowvolume.final FlowVolumeasFlowVolume(FlowVolumeUnit displayUnit) Return the current scalar as a flowvolume, and provide a display unit.final ForceasForce()Return the current scalar as a force.final ForceReturn the current scalar as a force, and provide a display unit.final FrequencyReturn the current scalar as a frequency.final FrequencyasFrequency(FrequencyUnit displayUnit) Return the current scalar as a frequency, and provide a display unit.final IlluminanceReturn the current scalar as a illuminance.final IlluminanceasIlluminance(IlluminanceUnit displayUnit) Return the current scalar as a illuminance, and provide a display unit.final LengthasLength()Return the current scalar as a length.final LengthasLength(LengthUnit displayUnit) Return the current scalar as a length, and provide a display unit.final LinearDensityReturn the current scalar as a lineardensity.final LinearDensityasLinearDensity(LinearDensityUnit displayUnit) Return the current scalar as a lineardensity, and provide a display unit.final LuminousFluxReturn the current scalar as a luminousflux.final LuminousFluxasLuminousFlux(LuminousFluxUnit displayUnit) Return the current scalar as a luminousflux, and provide a display unit.final LuminousIntensityReturn the current scalar as a luminousintensity.final LuminousIntensityasLuminousIntensity(LuminousIntensityUnit displayUnit) Return the current scalar as a luminousintensity, and provide a display unit.final MagneticFluxReturn the current scalar as a magneticflux.final MagneticFluxasMagneticFlux(MagneticFluxUnit displayUnit) Return the current scalar as a magneticflux, and provide a display unit.final MagneticFluxDensityReturn the current scalar as a magneticfluxdensity.final MagneticFluxDensityasMagneticFluxDensity(MagneticFluxDensityUnit displayUnit) Return the current scalar as a magneticfluxdensity, and provide a display unit.final MassasMass()Return the current scalar as a mass.final MassReturn the current scalar as a mass, and provide a display unit.final MomentumReturn the current scalar as a momentum.final MomentumasMomentum(MomentumUnit displayUnit) Return the current scalar as a momentum, and provide a display unit.final PowerasPower()Return the current scalar as a power.final PowerReturn the current scalar as a power, and provide a display unit.final PressureReturn the current scalar as a pressure.final PressureasPressure(PressureUnit displayUnit) Return the current scalar as a pressure, and provide a display unit.final RadioActivityReturn the current scalar as a radioactivity.final RadioActivityasRadioActivity(RadioActivityUnit displayUnit) Return the current scalar as a radioactivity, and provide a display unit.final SolidAngleReturn the current scalar as a solidangle.final SolidAngleasSolidAngle(SolidAngleUnit displayUnit) Return the current scalar as a solidangle, and provide a display unit.final SpeedasSpeed()Return the current scalar as a speed.final SpeedReturn the current scalar as a speed, and provide a display unit.final TemperatureReturn the current scalar as a temperature.final TemperatureasTemperature(TemperatureUnit displayUnit) Return the current scalar as a temperature, and provide a display unit.final TorqueasTorque()Return the current scalar as a torque.final TorqueasTorque(TorqueUnit displayUnit) Return the current scalar as a torque, and provide a display unit.final VolumeasVolume()Return the current scalar as a volume.final VolumeasVolume(VolumeUnit displayUnit) Return the current scalar as a volume, and provide a display unit.static SIScalardivide(DoubleScalarRel<?, ?> left, DoubleScalarRel<?, ?> right) Divide two values; the result is a new instance with a different (existing or generated) SI unit.static <U extends Unit<U>,S extends DoubleScalar<U, S>>
Sinstantiate(double value, U unit) Instantiate the DoubleScalar based on its unit.static <S extends DoubleScalar<?,S>>
SinstantiateAnonymous(double value, Unit<?> unit) Instantiate the DoubleScalar based on its unit.final SIScalarinstantiateRel(double value, SIUnit unit) Construct a new Relative Immutable DoubleScalar of the right type.static SIScalarinterpolate(SIScalar zero, SIScalar one, double ratio) Interpolate between two values.static SIScalarReturn the maximum value of two relative scalars.static SIScalarReturn the maximum value of more than two relative scalars.static SIScalarReturn the minimum value of two relative scalars.static SIScalarReturn the minimum value of more than two relative scalars.static SIScalarmultiply(DoubleScalarRel<?, ?> left, DoubleScalarRel<?, ?> right) Multiply two values; the result is a new instance with a different (existing or generated) SI unit.static SIScalarReturns an SIScalar based on a value and the textual representation of the unit.static final SIScalarConstruct SI scalar.Create the reciprocal of this scalar with the correct dimensions.Somewhat verbose description of this value with the values expressed in the specified unit.static SIScalarReturns an SIScalar representation of a textual representation of a value with a unit.Methods inherited from class org.djunits.value.vdouble.scalar.base.DoubleScalarRel
abs, ceil, divide, divide, divide, floor, minus, neg, plus, rint, times, times, timesMethods inherited from class org.djunits.value.vdouble.scalar.base.DoubleScalar
compareTo, doubleValue, eq, eq0, equals, floatValue, ge, ge0, getInUnit, getInUnit, getSI, gt, gt0, hashCode, intValue, le, le0, longValue, lt, lt0, ne, ne0, toDisplayString, toDisplayString, toString, toString, toString, toStringSIPrefixed, toStringSIPrefixed, toTextualString, toTextualStringMethods inherited from class org.djunits.value.base.Scalar
format, format, getDisplayUnit, setDisplayUnitMethods inherited from class java.lang.Number
byteValue, shortValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.djunits.value.Value
isAbsolute, isRelative
-
Constructor Details
-
SIScalar
Construct SI scalar.- Parameters:
value- the double valueunit- unit for the double value
-
SIScalar
Construct SI scalar.- Parameters:
value- Scalar from which to construct this instance
-
-
Method Details
-
instantiateRel
Description copied from class:DoubleScalarRelConstruct a new Relative Immutable DoubleScalar of the right type. Each extending class must implement this method.- Specified by:
instantiateRelin classDoubleScalarRel<SIUnit,SIScalar> - Parameters:
value- the double valueunit- the unit- Returns:
- R a new relative instance of the DoubleScalar of the right type
-
ofSI
Construct SI scalar.- Parameters:
value- the double value in SI unitsunit- the unit to use for the SI scalar- Returns:
- the new scalar with the SI value
-
interpolate
Interpolate between two values.- Parameters:
zero- the low valueone- the high valueratio- the ratio between 0 and 1, inclusive- Returns:
- a Scalar at the ratio between
-
max
Return the maximum value of two relative scalars.- Parameters:
r1- the first scalarr2- the second scalar- Returns:
- the maximum value of two relative scalars
-
max
Return the maximum value of more than two relative scalars.- Parameters:
r1- the first scalarr2- the second scalarrn- the other scalars- Returns:
- the maximum value of more than two relative scalars
-
min
Return the minimum value of two relative scalars.- Parameters:
r1- the first scalarr2- the second scalar- Returns:
- the minimum value of two relative scalars
-
min
Return the minimum value of more than two relative scalars.- Parameters:
r1- the first scalarr2- the second scalarrn- the other scalars- Returns:
- the minimum value of more than two relative scalars
-
multiply
Multiply two values; the result is a new instance with a different (existing or generated) SI unit.- Parameters:
left- the left operandright- the right operand- Returns:
- the product of the two values
-
divide
Divide two values; the result is a new instance with a different (existing or generated) SI unit.- Parameters:
left- the left operandright- the right operand- Returns:
- the ratio of the two values
-
reciprocal
Description copied from class:DoubleScalarRelCreate the reciprocal of this scalar with the correct dimensions.- Overrides:
reciprocalin classDoubleScalarRel<SIUnit,SIScalar> - Returns:
- a new scalar instance with correct SI dimensions
-
valueOf
Returns an SIScalar representation of a textual representation of a value with a unit. The String representation that can be parsed is the double value in the unit, followed by the official abbreviation of the unit. Spaces are allowed, but not required, between the value and the unit.- Parameters:
text- the textual representation to parse into a SIScalar- Returns:
- the Scalar representation of the value in its unit
- Throws:
IllegalArgumentException- when the text cannot be parsedNullPointerException- when the text argument is null
-
of
Returns an SIScalar based on a value and the textual representation of the unit.- Parameters:
value- the value to useunitString- the textual representation of the unit- Returns:
- the Scalar representation of the value in its unit
- Throws:
IllegalArgumentException- when the unit cannot be parsed or is incorrectNullPointerException- when the unitString argument is null
-
toString
Description copied from interface:ValueSomewhat verbose description of this value with the values expressed in the specified unit.- Specified by:
toStringin interfaceValue<SIUnit,SIScalar> - Overrides:
toStringin classDoubleScalar<SIUnit,SIScalar> - Parameters:
displayUnit- the unit into which the values are converted for displayverbose- if true; include type info; if false; exclude type infowithUnit- if true; include the unit; of false; exclude the unit- Returns:
- printable string with the value contents
-
instantiate
Instantiate the DoubleScalar based on its unit. Rigid check on types by the compiler.- Type Parameters:
U- the unitS- the return type- Parameters:
value- the valueunit- the unit in which the value is expressed- Returns:
- an instantiated DoubleScalar with the value expressed in the unit
-
instantiateAnonymous
Instantiate the DoubleScalar based on its unit. Loose check for types on the compiler. This allows the unit to be specified as a Unit<?> type.
Note that it is possible to make mistakes with anonymous units.- Type Parameters:
S- the return type- Parameters:
value- the valueunit- the unit in which the value is expressed- Returns:
- an instantiated DoubleScalar with the value expressed in the unit
-
as
Return the current scalar transformed to a scalar in the given unit. Of course the SI dimensionality has to match, otherwise the scalar cannot be transformed. The compiler will check the alignment between the return value and the unit.- Type Parameters:
U- the unit typeS- the scalar type- Parameters:
displayUnit- the unit in which the scalar needs to be expressed- Returns:
- the scalar that has been transformed into the right scalar type and unit
-
asAbsorbedDose
Return the current scalar as a absorbeddose.- Returns:
- the current scalar as a absorbeddose
-
asAbsorbedDose
Return the current scalar as a absorbeddose, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a absorbeddose
-
asAcceleration
Return the current scalar as a acceleration.- Returns:
- the current scalar as a acceleration
-
asAcceleration
Return the current scalar as a acceleration, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a acceleration
-
asAmountOfSubstance
Return the current scalar as a amountofsubstance.- Returns:
- the current scalar as a amountofsubstance
-
asAmountOfSubstance
Return the current scalar as a amountofsubstance, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a amountofsubstance
-
asAngularAcceleration
Return the current scalar as a angularacceleration.- Returns:
- the current scalar as a angularacceleration
-
asAngularAcceleration
Return the current scalar as a angularacceleration, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a angularacceleration
-
asAngularVelocity
Return the current scalar as a angularvelocity.- Returns:
- the current scalar as a angularvelocity
-
asAngularVelocity
Return the current scalar as a angularvelocity, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a angularvelocity
-
asArea
Return the current scalar as a area.- Returns:
- the current scalar as a area
-
asArea
Return the current scalar as a area, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a area
-
asCatalyticActivity
Return the current scalar as a catalyticactivity.- Returns:
- the current scalar as a catalyticactivity
-
asCatalyticActivity
Return the current scalar as a catalyticactivity, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a catalyticactivity
-
asDensity
Return the current scalar as a density.- Returns:
- the current scalar as a density
-
asDensity
Return the current scalar as a density, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a density
-
asDimensionless
Return the current scalar as a dimensionless.- Returns:
- the current scalar as a dimensionless
-
asDimensionless
Return the current scalar as a dimensionless, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a dimensionless
-
asElectricalCapacitance
Return the current scalar as a electricalcapacitance.- Returns:
- the current scalar as a electricalcapacitance
-
asElectricalCapacitance
Return the current scalar as a electricalcapacitance, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a electricalcapacitance
-
asElectricalCharge
Return the current scalar as a electricalcharge.- Returns:
- the current scalar as a electricalcharge
-
asElectricalCharge
Return the current scalar as a electricalcharge, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a electricalcharge
-
asElectricalConductance
Return the current scalar as a electricalconductance.- Returns:
- the current scalar as a electricalconductance
-
asElectricalConductance
Return the current scalar as a electricalconductance, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a electricalconductance
-
asElectricalCurrent
Return the current scalar as a electricalcurrent.- Returns:
- the current scalar as a electricalcurrent
-
asElectricalCurrent
Return the current scalar as a electricalcurrent, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a electricalcurrent
-
asElectricalInductance
Return the current scalar as a electricalinductance.- Returns:
- the current scalar as a electricalinductance
-
asElectricalInductance
Return the current scalar as a electricalinductance, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a electricalinductance
-
asElectricalPotential
Return the current scalar as a electricalpotential.- Returns:
- the current scalar as a electricalpotential
-
asElectricalPotential
Return the current scalar as a electricalpotential, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a electricalpotential
-
asElectricalResistance
Return the current scalar as a electricalresistance.- Returns:
- the current scalar as a electricalresistance
-
asElectricalResistance
Return the current scalar as a electricalresistance, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a electricalresistance
-
asEnergy
Return the current scalar as a energy.- Returns:
- the current scalar as a energy
-
asEnergy
Return the current scalar as a energy, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a energy
-
asEquivalentDose
Return the current scalar as a equivalentdose.- Returns:
- the current scalar as a equivalentdose
-
asEquivalentDose
Return the current scalar as a equivalentdose, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a equivalentdose
-
asFlowMass
Return the current scalar as a flowmass.- Returns:
- the current scalar as a flowmass
-
asFlowMass
Return the current scalar as a flowmass, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a flowmass
-
asFlowVolume
Return the current scalar as a flowvolume.- Returns:
- the current scalar as a flowvolume
-
asFlowVolume
Return the current scalar as a flowvolume, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a flowvolume
-
asForce
Return the current scalar as a force.- Returns:
- the current scalar as a force
-
asForce
Return the current scalar as a force, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a force
-
asFrequency
Return the current scalar as a frequency.- Returns:
- the current scalar as a frequency
-
asFrequency
Return the current scalar as a frequency, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a frequency
-
asIlluminance
Return the current scalar as a illuminance.- Returns:
- the current scalar as a illuminance
-
asIlluminance
Return the current scalar as a illuminance, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a illuminance
-
asLinearDensity
Return the current scalar as a lineardensity.- Returns:
- the current scalar as a lineardensity
-
asLinearDensity
Return the current scalar as a lineardensity, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a lineardensity
-
asLuminousFlux
Return the current scalar as a luminousflux.- Returns:
- the current scalar as a luminousflux
-
asLuminousFlux
Return the current scalar as a luminousflux, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a luminousflux
-
asLuminousIntensity
Return the current scalar as a luminousintensity.- Returns:
- the current scalar as a luminousintensity
-
asLuminousIntensity
Return the current scalar as a luminousintensity, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a luminousintensity
-
asMagneticFluxDensity
Return the current scalar as a magneticfluxdensity.- Returns:
- the current scalar as a magneticfluxdensity
-
asMagneticFluxDensity
Return the current scalar as a magneticfluxdensity, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a magneticfluxdensity
-
asMagneticFlux
Return the current scalar as a magneticflux.- Returns:
- the current scalar as a magneticflux
-
asMagneticFlux
Return the current scalar as a magneticflux, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a magneticflux
-
asMass
Return the current scalar as a mass.- Returns:
- the current scalar as a mass
-
asMass
Return the current scalar as a mass, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a mass
-
asMomentum
Return the current scalar as a momentum.- Returns:
- the current scalar as a momentum
-
asMomentum
Return the current scalar as a momentum, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a momentum
-
asPower
Return the current scalar as a power.- Returns:
- the current scalar as a power
-
asPower
Return the current scalar as a power, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a power
-
asPressure
Return the current scalar as a pressure.- Returns:
- the current scalar as a pressure
-
asPressure
Return the current scalar as a pressure, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a pressure
-
asRadioActivity
Return the current scalar as a radioactivity.- Returns:
- the current scalar as a radioactivity
-
asRadioActivity
Return the current scalar as a radioactivity, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a radioactivity
-
asSolidAngle
Return the current scalar as a solidangle.- Returns:
- the current scalar as a solidangle
-
asSolidAngle
Return the current scalar as a solidangle, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a solidangle
-
asSpeed
Return the current scalar as a speed.- Returns:
- the current scalar as a speed
-
asSpeed
Return the current scalar as a speed, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a speed
-
asTorque
Return the current scalar as a torque.- Returns:
- the current scalar as a torque
-
asTorque
Return the current scalar as a torque, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a torque
-
asVolume
Return the current scalar as a volume.- Returns:
- the current scalar as a volume
-
asVolume
Return the current scalar as a volume, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a volume
-
asAngle
Return the current scalar as a angle.- Returns:
- the current scalar as a angle
-
asAngle
Return the current scalar as a angle, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a angle
-
asLength
Return the current scalar as a length.- Returns:
- the current scalar as a length
-
asLength
Return the current scalar as a length, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a length
-
asTemperature
Return the current scalar as a temperature.- Returns:
- the current scalar as a temperature
-
asTemperature
Return the current scalar as a temperature, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a temperature
-
asDuration
Return the current scalar as a duration.- Returns:
- the current scalar as a duration
-
asDuration
Return the current scalar as a duration, and provide a display unit.- Parameters:
displayUnit- the unit in which the value will be displayed- Returns:
- the current scalar as a duration
-