8 #ifndef PXR_BASE_TS_TANGENT_CONVERSION_H
9 #define PXR_BASE_TS_TANGENT_CONVERSION_H
21 bool convertHeightToSlope,
22 bool divideValuesByThree,
31 bool convertHeightToSlope,
32 bool divideValuesByThree,
41 bool convertSlopeToHeight,
42 bool multiplyValuesByThree,
51 bool convertSlopeToHeight,
52 bool multiplyValuesByThree,
62 const T slopeOrHeightIn,
63 bool convertHeightToSlope,
64 bool divideValuesByThree,
73 bool convertSlopeToHeight,
74 bool multiplyValuesByThree,
82 #define _MAKE_CLAUSE(unused, tuple) \
83 std::is_same_v<NonVolatileT, TS_SPLINE_VALUE_CPP_TYPE(tuple)> ||
88 const T slopeOrHeightIn,
89 bool convertHeightToSlope,
90 bool divideValuesByThree,
99 false),
"Can only use the values supported by the spline system.");
102 widthIn, slopeOrHeightIn, convertHeightToSlope, divideValuesByThree,
103 negateHeight, widthOut, slopeOut);
106 template <
typename T>
108 const TsTime widthIn,
110 bool convertSlopeToHeight,
111 bool multiplyValuesByThree,
120 false),
"Can only use the values supported by the spline system.");
123 widthIn, slopeIn, convertSlopeToHeight, multiplyValuesByThree,
124 negateHeight, widthOut, slopeOrHeightOut);
bool Ts_ConvertFromStandardHelper(TsTime widthIn, T slopeIn, bool convertSlopeToHeight, bool multiplyValuesByThree, bool negateHeight, TsTime *widthOut, T *slopeOrHeightOut)
bool Ts_ConvertToStandardHelper(const TsTime widthIn, const T slopeOrHeightIn, bool convertHeightToSlope, bool divideValuesByThree, bool negateHeight, TsTime *widthOut, T *slopeOut)
#define _MAKE_CLAUSE(unused, tuple)
PXR_NAMESPACE_OPEN_SCOPE bool TsConvertToStandardTangent(TsTime widthIn, T slopeOrHeightIn, bool convertHeightToSlope, bool divideValuesByThree, bool negateHeight, TsTime *widthOut, T *slopeOut)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define TF_PP_SEQ_FOR_EACH(_macro, data, seq)
bool TsConvertFromStandardTangent(TsTime widthIn, T slopeIn, bool convertSlopeToHeight, bool multiplyValuesByThree, bool negateHeight, TsTime *widthOut, T *slopeOrHeightOut)
#define PXR_NAMESPACE_CLOSE_SCOPE
#define TS_SPLINE_SUPPORTED_VALUE_TYPES