 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
72 const agx::Real* operator[](
size_t i )
const;
87 const agx::Real& at(
size_t i,
size_t j )
const;
95 void set(
size_t i,
size_t j,
agx::Real value );
271 void translateWorldDiagonalBlock(
const agx::Vec3 cmOffset,
274 void translateWorldDiagonalBlock(
const agx::Vec3 cmOffsetRb1,
306 virtual void prepare()
override;
339 rb1DiagonalBlock.
reset();
340 rb2DiagonalBlock.
reset();
341 offDiagonalBlock.
reset();
349 Transformed m_transformed;
370 return (*
this)[ i ][ j ];
377 (*this)[ i ][ j ] = value;
384 return (*
this)[ i ][ j ];
399 return m_offDiagonalBlock;
404 return m_offDiagonalBlock;
Class containing a rigid body and the 6x6 matrix to be written in the diagonal of the system matrix.
const AGXCORE_EXPORT Real RealEpsilon
AGXPHYSICS_EXPORT agx::Bool equivalent(const agx::AddedMassInteraction::Matrix6x6 &lhs, const agx::AddedMassInteraction::Matrix6x6 &rhs, agx::Real eps=agx::RealEpsilon)
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive.
The rigid body class, combining a geometric model and a frame of reference.
Base class for a strong interaction concept where there interaction is defined in the mass matrix par...
6x6 matrix class with blockwise interface to get or set 3x3 matrices: [ M(0, 0) M(0,...
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Pointer to a entity instance of type Physics.RigidBody.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
#define AGXPHYSICS_EXPORT
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
AGXPHYSICS_EXPORT agx::Bool equalsZero(const agx::AddedMassInteraction::Matrix6x6 &matrix, agx::Real eps=agx::RealEpsilon)
const agx::Real * operator[](size_t i) const
Interface to write added mass matrices for one or two rigid bodies.
Class for writing serialized data in binary format to a stream.
#define AGX_DECLARE_POINTER_TYPES(type)
const agx::AddedMassInteraction::Matrix6x6 & getOffDiagonalBlock() const
Off diagonal block (6x6 matrix).
const agx::AddedMassInteraction::Matrix6x6 & getBlock() const
void set(size_t i, size_t j, agx::Real value)
const agx::Real & at(size_t i, size_t j) const
void reset()
Resets all values to zero.