30 explicit WireSegmentTensionData(
const agxWire::Node::Tension* tension );
50 WireNodeTensionData(
const agxWire::Node::Tension* currNodeTension,
const agxWire::Node::Tension* nextNodeTension );
80 : raw(
agx::
Real( 0 ) ), smoothed(
agx::Real( 0 ) )
85 : raw( rawTension ), smoothed( smoothedTension )
90 : raw( tension !=
nullptr ? tension->raw :
agx::Real( 0 ) ), smoothed( tension !=
nullptr ? tension->smoothed :
agx::Real( 0 ) )
100 : prev( currNodeTension ), next( nextNodeTension )
106 return agx::Real( 0.5 ) * ( prev.raw + next.raw );
111 return agx::Real( 0.5 ) * ( prev.smoothed + next.smoothed );
121 return prev.smoothed;
agx::Real smoothed
Smoothed tension value given the current smoothing filter.
#define AGXPHYSICS_EXPORT
Structure containing relevant tension data for a wire element/segment.
agx::Real getAverageSmoothed() const
Structure containing relevant tension data for a node.
agx::Real getSmoothed() const
WireNodeTensionData()
Default constructor - all values default.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Implements a Wire model with adaptive resolution.
WireSegmentTensionData next
Segment after node (this node is begin node to that segment) tension data.
agx::Real raw
Raw tension value.
WireSegmentTensionData prev
Segment before node (this node is end node to that segment) tension data.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
agx::Real getAverageRaw() const