Class Dimensions
java.lang.Object
gnu.math.Dimensions
A Dimensions object represents the product or ratio of BaseUnits.
The idea is that in order to add two Quantities (such as 3mm + 5cm)
their Dimensions have to match. Equal dimensions are also ==.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintGet the exponent for a BaseUnit in this Dimensions object.final inthashCode()static Dimensionsproduct(Dimensions a, int mul_a, Dimensions b, int mul_b) toString()
-
Field Details
-
Empty
The empty Dimensions that pure numbers have.
-
-
Method Details
-
hashCode
-
product
-
getPower
Get the exponent for a BaseUnit in this Dimensions object. -
toString
-