24 #ifndef PXR_USD_USD_PHYSICS_METRICS_H
25 #define PXR_USD_USD_PHYSICS_METRICS_H
51 double kilogramsPerUnit);
71 double epsilon = 1e-5);
78 static constexpr
double grams = 0.001;
80 static constexpr
double slugs = 14.5939;
85 #endif // PXR_USD_USD_PHYSICS_METRICS_H
static constexpr double grams
USDPHYSICS_API bool UsdPhysicsMassUnitsAre(double authoredUnits, double standardUnits, double epsilon=1e-5)
USDPHYSICS_API bool UsdPhysicsSetStageKilogramsPerUnit(const UsdStageWeakPtr &stage, double kilogramsPerUnit)
UsdStagePtr UsdStageWeakPtr
USDPHYSICS_API double UsdPhysicsGetStageKilogramsPerUnit(const UsdStageWeakPtr &stage)
Return stage's authored kilogramsPerUnit, or 1.0 if unauthored.
USDPHYSICS_API bool UsdPhysicsStageHasAuthoredKilogramsPerUnit(const UsdStageWeakPtr &stage)
Return whether stage has an authored kilogramsPerUnit.
static constexpr double kilograms
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
static constexpr double slugs