Distance#

class ansys.geometry.core.misc.measurements.Distance(value: ansys.geometry.core.typing.Real | pint.Quantity, unit: pint.Unit | None = None)#

Bases: Measurement

Provides the Measurement subclass for holding a distance.

Parameters:
valueReal | Quantity

Value of the distance.

unitUnit, default: DEFAULT_UNITS.LENGTH

Units for the distance.

Overview#

unit

Unit of the object.

Import detail#

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

Attribute detail#

Distance.unit#

Unit of the object.