public interface Dimension
Concrete dimensions are obtained through the Unit.getDimension() method.
Two units u1 and u2 are compatible if and only if
u1.getDimension().equals(u2.getDimension()).
Unit,
Wikipedia: Dimensional Analysis| Modifier and Type | Method and Description |
|---|---|
Dimension |
divide(Dimension divisor)
Returns the quotient of this dimension with the one specified.
|
Map<? extends Dimension,Integer> |
getBaseDimensions()
Returns the (fundamental) base dimensions and their exponent whose product is this dimension, or
null if this dimension is a base
dimension. |
Dimension |
multiply(Dimension multiplicand)
Returns the product of this dimension with the one specified.
|
Dimension |
pow(int n)
Returns this dimension raised to an exponent.
|
Dimension |
root(int n)
Returns the given root of this dimension.
|
Dimension multiply(Dimension multiplicand)
multiplicand - the dimension multiplicand.this * multiplicandDimension divide(Dimension divisor)
divisor - the dimension divisor.this / divisorDimension pow(int n)
n - power to raise this Dimension to.Dimension root(int n)
n - the root's order.ArithmeticException - if n == 0.Map<? extends Dimension,Integer> getBaseDimensions()
null if this dimension is a base
dimension.Copyright © 2014–2016 Jean-Marie Dautelle, Werner Keil, V2COM. All rights reserved.