Quantity.isConsistentWith

Tests wheter this quantity has the same dimensions as another one.

struct Quantity(N, Dim...)
const
bool
isConsistentWith
(
Q
)
()

Examples

import quantities.si : minute, second, meter;
assert(minute.isConsistentWith(second));
assert(!meter.isConsistentWith(second));

Meta