7#ifndef PXR_USD_USD_PHYSICS_METRICS_H
8#define PXR_USD_USD_PHYSICS_METRICS_H
11#include "pxr/usd/usdPhysics/api.h"
14PXR_NAMESPACE_OPEN_SCOPE
34 double kilogramsPerUnit);
54 double epsilon = 1e-5);
61 static constexpr double grams = 0.001;
62 static constexpr double kilograms = 1.0;
63 static constexpr double slugs = 14.5939;
66PXR_NAMESPACE_CLOSE_SCOPE
Container class for static double-precision symbols representing common mass units of measure express...
USDPHYSICS_API bool UsdPhysicsMassUnitsAre(double authoredUnits, double standardUnits, double epsilon=1e-5)
Return true if the two given metrics are within the provided relative epsilon of each other,...
USDPHYSICS_API bool UsdPhysicsStageHasAuthoredKilogramsPerUnit(const UsdStageWeakPtr &stage)
Return whether stage has an authored kilogramsPerUnit.
USDPHYSICS_API double UsdPhysicsGetStageKilogramsPerUnit(const UsdStageWeakPtr &stage)
Return stage's authored kilogramsPerUnit, or 1.0 if unauthored.
USDPHYSICS_API bool UsdPhysicsSetStageKilogramsPerUnit(const UsdStageWeakPtr &stage, double kilogramsPerUnit)
Author stage's kilogramsPerUnit.