Quantity.isConsistentWith

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

struct Quantity(N, Dimensions dims)
const
bool
isConsistentWith
(
Q
)
()

Examples

import quantities.si : minute, second, meter;

assert(minute.isConsistentWith(second));
assert(!meter.isConsistentWith(second));

Meta