SolidAngle class final
Represents a quantity of solid angle.
A solid angle is the two-dimensional angle in three-dimensional space that an object subtends at a point. It is a measure of how large the object appears to an observer looking from that point. The SI derived unit is the Steradian (sr).
- Inheritance
-
- Object
- Quantity<
SolidAngleUnit> - LinearQuantity<
SolidAngleUnit, SolidAngle> - SolidAngle
- Available extensions
- Annotations
-
- @immutable
Constructors
- SolidAngle(double _value, SolidAngleUnit _unit)
-
Creates a new
SolidAnglewith a given value and unit.const
Properties
- asSpat → SolidAngle
-
Available on SolidAngle, provided by the SolidAngleValueGetters extension
Returns a new SolidAngle object representing this solid angle in Spat (sp).no setter - asSquareDegrees → SolidAngle
-
Available on SolidAngle, provided by the SolidAngleValueGetters extension
Returns a new SolidAngle object representing this solid angle in Square Degrees (deg²).no setter - asSteradians → SolidAngle
-
Available on SolidAngle, provided by the SolidAngleValueGetters extension
Returns a new SolidAngle object representing this solid angle in Steradians (sr).no setter - hashCode → int
-
Returns a hash code for this
Quantityinstance.no setterinherited - inSpat → double
-
Available on SolidAngle, provided by the SolidAngleValueGetters extension
Returns the solid angle value in Spat (sp).no setter - inSquareDegrees → double
-
Available on SolidAngle, provided by the SolidAngleValueGetters extension
Returns the solid angle value in Square Degrees (deg²).no setter - inSteradians → double
-
Available on SolidAngle, provided by the SolidAngleValueGetters extension
Returns the solid angle value in Steradians (sr).no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unit → SolidAngleUnit
-
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< SolidAngleUnit> other) → int -
Compares this quantity to another Quantity of the same type (
T).inherited -
convertTo(
SolidAngleUnit targetUnit) → SolidAngle -
Creates a new
Qinstance with the value converted totargetUnit.inherited -
create(
double value, SolidAngleUnit unit) → SolidAngle -
Factory that creates a new instance of the concrete subtype
Q.override -
getValue(
SolidAngleUnit targetUnit) → double -
Returns the value of this quantity converted to
targetUnit.inherited -
isEquivalentTo(
Quantity< SolidAngleUnit> other, {double tolerance = 1e-9, double absoluteTolerance = 0.0}) → bool -
Checks if this quantity has the same physical magnitude as another,
accounting for IEEE 754 floating-point rounding inaccuracies.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ratioTo(
Quantity< SolidAngleUnit> other) → double -
Computes the dimensionless ratio of this quantity to
other.inherited -
toString(
{SolidAngleUnit? targetUnit, QuantityFormat format = QuantityFormat.invariant}) → String -
Returns a string representation of this quantity.
inherited
Operators
-
operator *(
double scalar) → SolidAngle -
Multiplies this quantity by a dimensionless
scalar.inherited -
operator +(
SolidAngle other) → SolidAngle -
Adds
otherto this quantity.inherited -
operator -(
SolidAngle other) → SolidAngle -
Subtracts
otherfrom this quantity.inherited -
operator /(
double scalar) → SolidAngle -
Divides this quantity by a dimensionless
scalar.inherited -
operator <(
Quantity< SolidAngleUnit> other) → bool -
Checks if this quantity's magnitude is less than another's.
inherited
-
operator <=(
Quantity< SolidAngleUnit> 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< SolidAngleUnit> other) → bool -
Checks if this quantity's magnitude is greater than another's.
inherited
-
operator >=(
Quantity< SolidAngleUnit> other) → bool -
Checks if this quantity's magnitude is greater than or equal to another's.
inherited
-
operator unary-(
) → SolidAngle -
Negates this quantity.
inherited
Static Properties
-
parser
→ QuantityParser<
SolidAngleUnit, SolidAngle> -
The parser instance used to convert strings into SolidAngle objects.
final
Static Methods
-
parse(
String input, {List< QuantityFormat> formats = const [QuantityFormat.invariant]}) → SolidAngle - Parses a string representation of solid angle into a SolidAngle object.
-
tryParse(
String input, {List< QuantityFormat> formats = const [QuantityFormat.invariant]}) → SolidAngle? -
Parses a string representation of solid angle into a SolidAngle object,
returning
nullwhen parsing fails.