Dimension class
Represents a physical dimension.
Properties
- def → DimDef
-
Returns a copy of the normalized definition.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- inverted ↔ Dimension
-
Inverse of this dimension.
getter/setter pair
- isBase → bool
-
Whether this is a base dimension.
latefinal
- isEmpty → bool
-
Whether this dimension is dimensionless.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isCompatible(
Dimension dim) → bool -
Whether
dimis compatible with this dimension. -
isMine(
Unit< Dimension> unit) → bool -
Whether
unitbelongs to this dimension. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pow(
int p) → Dimension -
Returns this dimension raised to
p. -
toString(
) → String -
Returns the dimension definition as a string.
override
Operators
-
operator *(
Dimension other) → Dimension -
Returns the product of this dimension and
other. -
operator /(
Dimension other) → Dimension -
Returns the quotient of this dimension and
other. -
operator ==(
Object other) → bool -
The equality operator.
override