22 #ifndef AGXFN_MATH_CLAMP_H 23 #define AGXFN_MATH_CLAMP_H 36 namespace agx {
namespace Math { } }
51 template <
typename AutoT1,
typename AutoT2,
typename AutoT3,
typename AutoT4>
65 template <
typename AutoT1,
typename AutoT2,
typename AutoT3,
typename AutoT4>
74 agxFn::Math::Clamp(result, value, min, max);
90 template <
typename AutoT1,
typename AutoT2,
typename AutoT3,
typename AutoT4>
103 agxFn::Math::Clamp(result[i], value[i], min[i], max[i]);
118 template <
typename AutoT1,
typename AutoT2,
typename AutoT3,
typename AutoT4>
131 agxFn::Math::Clamp(result[i], value[i], min, max);
146 template <
typename AutoT1,
typename AutoT2,
typename AutoT3,
typename AutoT4>
159 agxFn::Math::Clamp(result[i], value[i], min, max[i]);
174 template <
typename AutoT1,
typename AutoT2,
typename AutoT3,
typename AutoT4>
187 agxFn::Math::Clamp(result[i], value[i], min[i], max);
Vec3T< T > min(const Vec3T< T > &lhs, const Vec3T< T > &rhs)
Vec3T< T > max(const Vec3T< T > &lhs, const Vec3T< T > &rhs)
Type-specific Array used for fast access into the data held by a Buffer.
A range job executes a kernel implementation on a subset of the data.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
T1 clamp(T1 v, T2 minimum, T3 maximum)