24 #ifndef PXR_USD_USD_PHYSICS_METRICS_H 25 #define PXR_USD_USD_PHYSICS_METRICS_H 28 #include "pxr/usd/usdPhysics/api.h" 31 PXR_NAMESPACE_OPEN_SCOPE
51 double kilogramsPerUnit);
71 double epsilon = 1e-5);
78 static constexpr
double grams = 0.001;
79 static constexpr
double kilograms = 1.0;
80 static constexpr
double slugs = 14.5939;
83 PXR_NAMESPACE_CLOSE_SCOPE
85 #endif // PXR_USD_USD_PHYSICS_METRICS_H 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 UsdPhysicsSetStageKilogramsPerUnit(const UsdStageWeakPtr &stage, double kilogramsPerUnit)
Author stage's kilogramsPerUnit.
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.
Container class for static double-precision symbols representing common mass units of measure express...