JavaScript is disabled on your browser.
Skip navigation links
gnu.math

Class 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

      Fields
      Modifier and Type Field and Description
      static Dimensions Empty
      The empty Dimensions that pure numbers have.
    • Method Summary

      All Methods
      Modifier and Type Method and Description
      int getPower (BaseUnit unit)
      Get the exponent for a BaseUnit in this Dimensions object.
      int hashCode ()
      static Dimensions product (Dimensions a, int mul_a, Dimensions b, int mul_b)
      java.lang.String toString ()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • Empty

        public static Dimensions Empty
        The empty Dimensions that pure numbers have.
    • Method Detail

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getPower

        public int getPower(BaseUnit unit)
        Get the exponent for a BaseUnit in this Dimensions object.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /