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())
.
Modifier and Type | Method and Description |
---|---|
Dimension |
divide(Dimension divisor)
Returns the quotient of this dimension with the one specified.
|
Map<? extends Dimension,Integer> |
getProductDimensions()
Returns the fundamental dimensions and their exponent whose product is
this dimension, or
null if this dimension is a fundamental 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 * multiplicand
Dimension divide(Dimension divisor)
divisor
- the dimension divisor.this / divisor
Dimension 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> getProductDimensions()
null
if this dimension is a fundamental dimension.Copyright © 2014–2015 Jean-Marie Dautelle, Werner Keil, V2COM. All rights reserved.