Measurement#

class ansys.geometry.core.misc.measurements.Measurement(value: beartype.typing.Union[ansys.geometry.core.typing.Real, pint.Quantity], unit: pint.Unit, dimensions: pint.Unit)#

Bases: ansys.geometry.core.misc.units.PhysicalQuantity

Provides the PhysicalQuantity subclass for holding a measurement.

Parameters:
valueUnion[Real, Quantity]

Value of the measurement.

unitUnit

Units for the measurement.

dimensionsUnit

Units for extracting the dimensions of the measurement. If ~pint.Unit.meter is given, the dimension extracted is [length].

Overview#

value

Value of the measurement.

__eq__

Equals operator for the Measurement class.

Import detail#

from ansys.geometry.core.misc.measurements import Measurement

Property detail#

property Measurement.value: pint.Quantity#

Value of the measurement.

Method detail#

Measurement.__eq__(other: Measurement) bool#

Equals operator for the Measurement class.