public function AbstractUnitsMathematicalOperator::dimension in Units of Measurement 7.2
Determine physical dimension of this mathematical expression.
Return value
array Dimension array of this mathematical expression
Overrides UnitsMathematicalExpression::dimension
1 method overrides AbstractUnitsMathematicalOperator::dimension()
- UnitsMathematicalOperatorNonLinear::dimension in ./
units.module - Determine physical dimension of this mathematical expression.
File
- ./
units.module, line 1335 - Provide API for managing and converting units of measurement.
Class
- AbstractUnitsMathematicalOperator
- Abstract implementation of "mathematical operator" interface.
Code
public function dimension() {
$dimension_callback = ctools_plugin_get_function($this->operator, 'dimension callback');
list($evaluate1, $evaluate2) = $this
->evaluateOperands();
return $dimension_callback($this->operand1
->dimension(), $this->operand2
->dimension(), $evaluate1, $evaluate2);
}