Force class

Represents a quantity of force.

Force is a derived quantity representing an influence that can change the motion of an object. The SI derived unit is the Newton (N), which is defined as kg·m/s².

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

Force(double value, ForceUnit unit)
Creates a new Force with a given value and unit.
const
Force.from(Mass mass, Acceleration acceleration)
Creates a Force instance from Mass and Acceleration (F = m * a).
factory

Properties

asDynes Force

Available on Force, provided by the ForceValueGetters extension

Returns a Force object representing this force in Dyne (dyn).
no setter
asGramsForce Force

Available on Force, provided by the ForceValueGetters extension

Returns a Force object representing this force in Gram-force (gf).
no setter
asKilogramsForce Force

Available on Force, provided by the ForceValueGetters extension

Returns a Force object representing this force in Kilogram-force (kgf).
no setter
asKilonewtons Force

Available on Force, provided by the ForceValueGetters extension

Returns a Force object representing this force in Kilonewtons (kN).
no setter
asMeganewtons Force

Available on Force, provided by the ForceValueGetters extension

Returns a Force object representing this force in Meganewtons (MN).
no setter
asMillinewtons Force

Available on Force, provided by the ForceValueGetters extension

Returns a Force object representing this force in Millinewtons (mN).
no setter
asNewtons Force

Available on Force, provided by the ForceValueGetters extension

Returns a Force object representing this force in Newtons (N).
no setter
asPoundals Force

Available on Force, provided by the ForceValueGetters extension

Returns a Force object representing this force in Poundals (pdl).
no setter
asPoundsForce Force

Available on Force, provided by the ForceValueGetters extension

Returns a Force object representing this force in Pounds-force (lbf).
no setter
hashCode int
Returns a hash code for this Quantity instance.
no setterinherited
inDynes double

Available on Force, provided by the ForceValueGetters extension

Returns the force value in Dyne (dyn).
no setter
inGramsForce double

Available on Force, provided by the ForceValueGetters extension

Returns the force value in Gram-force (gf).
no setter
inKilogramsForce double

Available on Force, provided by the ForceValueGetters extension

Returns the force value in Kilogram-force (kgf).
no setter
inKilonewtons double

Available on Force, provided by the ForceValueGetters extension

Returns the force value in Kilonewtons (kN).
no setter
inMeganewtons double

Available on Force, provided by the ForceValueGetters extension

Returns the force value in Meganewtons (MN).
no setter
inMillinewtons double

Available on Force, provided by the ForceValueGetters extension

Returns the force value in Millinewtons (mN).
no setter
inNewtons double

Available on Force, provided by the ForceValueGetters extension

Returns the force value in Newtons (N).
no setter
inPoundals double

Available on Force, provided by the ForceValueGetters extension

Returns the force value in Poundals (pdl).
no setter
inPoundsForce double

Available on Force, provided by the ForceValueGetters extension

Returns the force value in Pounds-force (lbf).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unit ForceUnit
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

accelerationOf(Mass mass) Acceleration
Calculates the Acceleration of a given Mass when this force is applied (a = F / m).
compareTo(Quantity<ForceUnit> other) int
Compares this quantity to another Quantity of the same type (T).
override
convertTo(ForceUnit targetUnit) Force
Creates a new Force instance with the value converted to the targetUnit.
override
getValue(ForceUnit targetUnit) double
Converts this force's value to the specified targetUnit.
override
isEquivalentTo(Quantity<ForceUnit> other) bool
Checks if this quantity has the same physical magnitude as another.
inherited
massFrom(Acceleration acceleration) Mass
Calculates the Mass that would be accelerated at a given Acceleration by this force (m = F / a).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString({ForceUnit? 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) Force
Multiplies this force by a scalar.
operator +(Force other) Force
Adds this force to another.
operator -(Force other) Force
Subtracts another force from this one.
operator /(double scalar) Force
Divides this force by a scalar.
operator <(Quantity<ForceUnit> other) bool
Checks if this quantity's magnitude is less than another's.
inherited
operator <=(Quantity<ForceUnit> 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<ForceUnit> other) bool
Checks if this quantity's magnitude is greater than another's.
inherited
operator >=(Quantity<ForceUnit> other) bool
Checks if this quantity's magnitude is greater than or equal to another's.
inherited