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 AnalysisModifier and Type | Method and Description |
---|---|
Dimension |
divide(Dimension divisor)
Returns the quotient of this dimension with the one specified.
|
java.util.Map<? extends Dimension,java.lang.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 * 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.java.lang.ArithmeticException
- if n == 0
.java.util.Map<? extends Dimension,java.lang.Integer> getBaseDimensions()
null
if this dimension is a base
dimension.Copyright © 2014–2018 Jean-Marie Dautelle, Werner Keil, Otavio Santana. All rights reserved.