17 #ifndef AGX_BODYCONTACTJACOBIAN_H 18 #define AGX_BODYCONTACTJACOBIAN_H 107 JacobianAccessorT(
const ComplementaryElementArrayT& jacobianElements,
size_t offset);
113 void setup(
const JacobianElementArrayT& jacobianElements,
size_t offset)
const;
114 void setup(
const ComplementaryElementArrayT& jacobianElements,
size_t offset)
const;
116 void setup(JacobianElementArrayT& jacobianElements,
size_t offset);
117 void setup(ComplementaryElementArrayT& jacobianElements,
size_t offset);
120 JacobianElementT&
get(
size_t index);
121 const JacobianElementT&
get(
size_t index)
const;
123 template <
typename AccessorT>
124 AccessorT
get(
size_t index);
126 template <
typename AccessorT>
127 const AccessorT
get(
size_t index)
const;
134 JacobianElementArrayT m_jacobianElements;
136 JacobianElementT *m_jacobianElements;
143 template <
typename JacobianElementT>
153 TangentJacobianT(
const JacobianElementArrayT& jacobianElements,
size_t offset);
154 TangentJacobianT(
const ComplementaryElementArrayT& jacobianElements,
size_t offset);
169 template <
typename JacobianElementT>
183 TangentJacobian tangent();
184 const TangentJacobian tangent()
const;
196 template <
typename JacobianElementT>
206 static const bool IsLocal =
false;
216 TangentJacobian tangent();
217 const TangentJacobian tangent()
const;
219 RollingResistanceJacobian rollingResistance();
220 const RollingResistanceJacobian rollingResistance()
const;
235 template <
typename JacobianElementT>
237 : m_jacobianElements(nullptr)
241 template <
typename JacobianElementT>
251 template <
typename JacobianElementT>
254 m_jacobianElements(jacobianElements,
IndexRange(offset, jacobianElements.size()))
262 template <
typename JacobianElementT>
272 template <
typename JacobianElementT>
282 template <
typename JacobianElementT>
285 const_cast<JacobianAccessorT *
>(
this)->setup(const_cast<ComplementaryElementArrayT&>(jacobianElements), offset);
288 template <
typename JacobianElementT>
291 const_cast<JacobianAccessorT *
>(
this)->setup(const_cast<JacobianElementArrayT&>(jacobianElements), offset);
295 template <
typename JacobianElementT>
301 template <
typename JacobianElementT>
306 template <
typename JacobianElementT>
309 m_jacobianElements = other.m_jacobianElements;
313 template <
typename JacobianElementT>
316 return m_jacobianElements[index];
319 template <
typename JacobianElementT>
322 return m_jacobianElements[index];
326 template <
typename JacobianElementT>
template <
typename AccessorT>
329 return AccessorT(m_jacobianElements, index);
332 template <
typename JacobianElementT>
template <
typename AccessorT>
335 return AccessorT(m_jacobianElements, index);
340 template <
typename JacobianElementT>
346 template <
typename JacobianElementT>
351 template <
typename JacobianElementT>
357 template <
typename JacobianElementT>
363 template <
typename JacobianElementT>
369 template <
typename JacobianElementT>
376 template <
typename JacobianElementT>
382 template <
typename JacobianElementT>
390 template <
typename JacobianElementT>
395 template <
typename JacobianElementT>
401 template <
typename JacobianElementT>
407 template <
typename JacobianElementT>
413 template <
typename JacobianElementT>
416 return this->
template get<TangentJacobian>(0);
419 template <
typename JacobianElementT>
422 return this->
template get<TangentJacobian>(0);
425 template <
typename JacobianElementT>
431 template <
typename JacobianElementT>
439 template <
typename JacobianElementT>
445 template <
typename JacobianElementT>
451 template <
typename JacobianElementT>
458 template <
typename JacobianElementT>
465 template <
typename JacobianElementT>
471 template <
typename JacobianElementT>
477 template <
typename JacobianElementT>
480 return this->
template get<TangentJacobian>(1);
483 template <
typename JacobianElementT>
486 return this->
template get<TangentJacobian>(1);
489 template <
typename JacobianElementT>
492 return this->
template get<RollingResistanceJacobian>(3);
495 template <
typename JacobianElementT>
498 return this->
template get<RollingResistanceJacobian>(3);
RollingResistanceJacobianT< Jacobian6DOFElement > RollingResistanceJacobian
BodyContactJacobianT< Jacobian6DOFElement32 > BodyContactJacobian32
BaseT::RollingResistanceJacobian RollingResistanceJacobian
BaseT::JacobianElementArrayT JacobianElementArrayT
BaseT::ComplementaryElementArrayT ComplementaryElementArrayT
JacobianAccessorT< JacobianElementT > BaseT
JacobianElementT & normal()
JacobianElementT & normal()
RollingResistanceJacobian rollingResistance()
agxSIMD::Jacobian6DOFElement64 Type
Jacobian6DOFElementT< Vec3f > Jacobian6DOFElement32
BaseT::JacobianElementArrayT JacobianElementArrayT
TangentJacobian tangent()
JacobianAccessorT< JacobianElementT > BaseT
BodyContactJacobianT< Jacobian6DOFElement64 > BodyContactJacobian64
BodyContactJacobianT< Jacobian6DOFElement > BodyContactJacobian
TangentJacobianT< Jacobian6DOFElement > TangentJacobian
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agxData::Array< typename ComplementaryElementT< JacobianElementT >::Type > ComplementaryElementArrayT
IndexRangeT< agx::UInt > IndexRange
RollingResistanceJacobianT< Jacobian6DOFElement32 > RollingResistanceJacobian32
RollingResistanceJacobianT< JacobianElementT > RollingResistanceJacobian
TangentJacobianT< JacobianElementT > TangentJacobian
agx::Jacobian6DOFElement64 Type
RollingResistanceJacobianT()
TangentJacobian tangent()
agxSIMD::Jacobian6DOFElement32 Type
agx::Jacobian6DOFElement32 Type
agxData::Array< JacobianElementT > JacobianElementArrayT
JacobianAccessorT< JacobianElementT > BaseT
BaseT::ComplementaryElementArrayT ComplementaryElementArrayT
Jacobian6DOFElementT< Vec3d > Jacobian6DOFElement64
BaseT::TangentJacobian TangentJacobian
BaseT::ComplementaryElementArrayT ComplementaryElementArrayT
#define DOXYGEN_END_INTERNAL_BLOCK()
TangentJacobianT< Jacobian6DOFElement64 > TangentJacobian64
BaseT::JacobianElementArrayT JacobianElementArrayT
#define DOXYGEN_START_INTERNAL_BLOCK()
TangentJacobianT< Jacobian6DOFElement32 > TangentJacobian32
BaseT::TangentJacobian TangentJacobian
RollingResistanceJacobianT< Jacobian6DOFElement64 > RollingResistanceJacobian64