gnu.math
Class Dimensions
java.lang.Object
   gnu.math.Dimensions
gnu.math.Dimensions
- public class Dimensions 
- extends java.lang.Object
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 | 
| static Dimensions | EmptyThe empty Dimensions that pure numbers have.
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait | 
 
Empty
public static Dimensions Empty
- The empty Dimensions that pure numbers have.
 
 
hashCode
public final int hashCode()
- 
- Overrides:
- hashCodein class- java.lang.Object
 
- 
 
product
public static Dimensions product(Dimensions a,
                                 int mul_a,
                                 Dimensions b,
                                 int mul_b)
- 
 
getPower
public int getPower(BaseUnit unit)
- Get the exponent for a BaseUnit in this Dimensions object.
 
- 
 
toString
public java.lang.String toString()
- 
- Overrides:
- toStringin class- java.lang.Object
 
-