LuminousIntensity class
Represents a quantity of luminous intensity.
Luminous intensity is a measure of the wavelength-weighted power emitted by a light source in a particular direction per unit solid angle, based on the luminosity function, a standardized model of the sensitivity of the human eye. The SI base unit for luminous intensity is the Candela (cd).
This class provides a type-safe way to handle luminous intensity values and conversions between different units (e.g., candelas, millicandelas).
- Inheritance
-
- Object
- Quantity<
LuminousIntensityUnit> - LuminousIntensity
- Available extensions
- Annotations
-
- @immutable
Constructors
- LuminousIntensity(double value, LuminousIntensityUnit unit)
-
Creates a new
LuminousIntensity
quantity with the given numericalvalue
andunit
.const
Properties
- asCandelas → LuminousIntensity
-
Available on LuminousIntensity, provided by the LuminousIntensityValueGetters extension
Returns a new LuminousIntensity object representing this intensity in Candelas (cd).no setter - asKilocandelas → LuminousIntensity
-
Available on LuminousIntensity, provided by the LuminousIntensityValueGetters extension
Returns a new LuminousIntensity object representing this intensity in Kilocandelas (kcd).no setter - asMillicandelas → LuminousIntensity
-
Available on LuminousIntensity, provided by the LuminousIntensityValueGetters extension
Returns a new LuminousIntensity object representing this intensity in Millicandelas (mcd).no setter - hashCode → int
-
Returns a hash code for this
Quantity
instance.no setterinherited - inCandelas → double
-
Available on LuminousIntensity, provided by the LuminousIntensityValueGetters extension
Returns the luminous intensity value in Candelas (cd).no setter - inKilocandelas → double
-
Available on LuminousIntensity, provided by the LuminousIntensityValueGetters extension
Returns the luminous intensity value in Kilocandelas (kcd).no setter - inMillicandelas → double
-
Available on LuminousIntensity, provided by the LuminousIntensityValueGetters extension
Returns the luminous intensity value in Millicandelas (mcd).no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unit → LuminousIntensityUnit
-
Returns the unit of measurement associated with this quantity's original value.
no setterinherited
- value → double
-
Returns the numerical value of this quantity in its original unit.
no setterinherited
Methods
-
compareTo(
Quantity< LuminousIntensityUnit> other) → int -
Compares this LuminousIntensity object to another Quantity<LuminousIntensityUnit>.
override
-
convertTo(
LuminousIntensityUnit targetUnit) → LuminousIntensity -
Creates a new LuminousIntensity instance with the value converted to the
targetUnit
.override -
getValue(
LuminousIntensityUnit targetUnit) → double -
Converts this luminous intensity's value to the specified
targetUnit
.override -
isEquivalentTo(
Quantity< LuminousIntensityUnit> other) → bool -
Checks if this quantity has the same physical magnitude as another.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
{LuminousIntensityUnit? targetUnit, int? fractionDigits, bool showUnitSymbol = true, String unitSymbolSeparator = '\u00A0', String? locale, NumberFormat? numberFormat}) → String -
Returns a string representation of this quantity, with options for
formatting and unit conversion.
inherited
Operators
-
operator *(
double scalar) → LuminousIntensity - Multiplies this luminous intensity by a scalar value (a dimensionless number).
-
operator +(
LuminousIntensity other) → LuminousIntensity - Adds this luminous intensity to another luminous intensity.
-
operator -(
LuminousIntensity other) → LuminousIntensity - Subtracts another luminous intensity from this luminous intensity.
-
operator /(
double scalar) → LuminousIntensity - Divides this luminous intensity by a scalar value (a dimensionless number).
-
operator <(
Quantity< LuminousIntensityUnit> other) → bool -
Checks if this quantity's magnitude is less than another's.
inherited
-
operator <=(
Quantity< LuminousIntensityUnit> other) → bool -
Checks if this quantity's magnitude is less than or equal to another's.
inherited
-
operator ==(
Object other) → bool -
Determines whether this Quantity is equal to another Object.
inherited
-
operator >(
Quantity< LuminousIntensityUnit> other) → bool -
Checks if this quantity's magnitude is greater than another's.
inherited
-
operator >=(
Quantity< LuminousIntensityUnit> other) → bool -
Checks if this quantity's magnitude is greater than or equal to another's.
inherited