AGX Dynamics 2.42.3.0
Loading...
Searching...
No Matches
agx::Jacobian6DOFElementT< T > Class Template Reference

#include <Jacobian.h>

Public Types

typedef T Vec3T
 

Public Member Functions

 Jacobian6DOFElementT ()
 Default constructor.
 
 Jacobian6DOFElementT (const Jacobian6DOFElementT &other)
 Copy constructor.
 
 Jacobian6DOFElementT (const T &spat, const T &rot)
 Construct given spatial and rotational value.
 
void add (const T &v1, const T &v2)
 Add v1 to spatial and v2 to rotational.
 
Real mult (const T &v1, const T &v2) const
 Scalar product between this and two other vectors.
 
Real operator* (const Jacobian6DOFElementT &rhs) const
 Multiplication operator, multiply this (lhs) with another element (rhs).
 
Jacobian6DOFElementT operator* (Real rhs) const
 Multiplication operator, scale this (lhs) with scalar (rhs).
 
Jacobian6DOFElementT & operator*= (Real rhs)
 
Jacobian6DOFElementT operator/ (Real rhs) const
 
Jacobian6DOFElementT & operator/= (Real rhs)
 
Jacobian6DOFElementT & operator= (const Jacobian6DOFElementT &other)
 Assignment operator, lhs.spatial = rhs.spatial and lhs.rotational = rhs.rotational.
 
bool operator== (const Jacobian6DOFElementT &other)
 
T & operator[] (UInt i)
 
const T & operator[] (UInt i) const
 
T & rotational ()
 
const T & rotational () const
 
void set (const T &v1, const T &v2)
 Assignment.
 
T & spatial ()
 
const T & spatial () const
 

Protected Attributes

T m_data [2]
 

Detailed Description

template<typename T>
class agx::Jacobian6DOFElementT< T >

Definition at line 104 of file agx/Jacobian.h.

Member Typedef Documentation

◆ Vec3T

template<typename T >
typedef T agx::Jacobian6DOFElementT< T >::Vec3T

Definition at line 107 of file agx/Jacobian.h.

Constructor & Destructor Documentation

◆ Jacobian6DOFElementT() [1/3]

template<typename T >
agx::Jacobian6DOFElementT< T >::Jacobian6DOFElementT ( )
inline

Default constructor.

All values are zeroed.

Definition at line 113 of file agx/Jacobian.h.

Referenced by agx::Jacobian6DOFElementT< T >::operator*(), and agx::Jacobian6DOFElementT< T >::operator/().

◆ Jacobian6DOFElementT() [2/3]

template<typename T >
agx::Jacobian6DOFElementT< T >::Jacobian6DOFElementT ( const Jacobian6DOFElementT< T > &  other)
inline

Copy constructor.

Definition at line 118 of file agx/Jacobian.h.

◆ Jacobian6DOFElementT() [3/3]

template<typename T >
agx::Jacobian6DOFElementT< T >::Jacobian6DOFElementT ( const T &  spat,
const T &  rot 
)
inlineexplicit

Construct given spatial and rotational value.

Parameters
spat- vector containing spatial values
rot- vector containing rotational values

Definition at line 128 of file agx/Jacobian.h.

References agx::Jacobian6DOFElementT< T >::m_data.

Member Function Documentation

◆ add()

template<typename T >
void agx::Jacobian6DOFElementT< T >::add ( const T &  v1,
const T &  v2 
)
inline

Add v1 to spatial and v2 to rotational.

Parameters
v1- vector to add to spatial part
v2- vector to add to rotational part

Definition at line 256 of file agx/Jacobian.h.

References agx::Jacobian6DOFElementT< T >::m_data.

◆ mult()

template<typename T >
Real agx::Jacobian6DOFElementT< T >::mult ( const T &  v1,
const T &  v2 
) const
inline

Scalar product between this and two other vectors.

I.e., this * [v1 v2]^T.

Parameters
v1- vector to be multiplied with spatial part
v2- vector to be multiplied with rotational part
Returns
the dot product between spatial * v1 + rotational + v2

Definition at line 235 of file agx/Jacobian.h.

References agx::innerProd_6(), and agx::Jacobian6DOFElementT< T >::m_data.

◆ operator*() [1/2]

template<typename T >
Real agx::Jacobian6DOFElementT< T >::operator* ( const Jacobian6DOFElementT< T > &  rhs) const
inline

Multiplication operator, multiply this (lhs) with another element (rhs).

Definition at line 197 of file agx/Jacobian.h.

References agx::Jacobian6DOFElementT< T >::m_data.

◆ operator*() [2/2]

template<typename T >
Jacobian6DOFElementT agx::Jacobian6DOFElementT< T >::operator* ( Real  rhs) const
inline

Multiplication operator, scale this (lhs) with scalar (rhs).

Definition at line 205 of file agx/Jacobian.h.

References agx::Jacobian6DOFElementT< T >::Jacobian6DOFElementT(), and agx::Jacobian6DOFElementT< T >::m_data.

◆ operator*=()

template<typename T >
Jacobian6DOFElementT & agx::Jacobian6DOFElementT< T >::operator*= ( Real  rhs)
inline

Definition at line 210 of file agx/Jacobian.h.

References agx::Jacobian6DOFElementT< T >::m_data.

◆ operator/()

template<typename T >
Jacobian6DOFElementT agx::Jacobian6DOFElementT< T >::operator/ ( Real  rhs) const
inline

◆ operator/=()

template<typename T >
Jacobian6DOFElementT & agx::Jacobian6DOFElementT< T >::operator/= ( Real  rhs)
inline

Definition at line 222 of file agx/Jacobian.h.

References agx::Jacobian6DOFElementT< T >::m_data.

◆ operator=()

template<typename T >
Jacobian6DOFElementT & agx::Jacobian6DOFElementT< T >::operator= ( const Jacobian6DOFElementT< T > &  other)
inline

Assignment operator, lhs.spatial = rhs.spatial and lhs.rotational = rhs.rotational.

Definition at line 137 of file agx/Jacobian.h.

References agx::Jacobian6DOFElementT< T >::m_data.

◆ operator==()

template<typename T >
bool agx::Jacobian6DOFElementT< T >::operator== ( const Jacobian6DOFElementT< T > &  other)
inline

◆ operator[]() [1/2]

template<typename T >
T & agx::Jacobian6DOFElementT< T >::operator[] ( UInt  i)
inline
Returns
spatial vector if index == 0, rotational vector if index == 1

Definition at line 147 of file agx/Jacobian.h.

References agxAssert, and agx::Jacobian6DOFElementT< T >::m_data.

◆ operator[]() [2/2]

template<typename T >
const T & agx::Jacobian6DOFElementT< T >::operator[] ( UInt  i) const
inline
Returns
spatial vector if index == 0, rotational vector if index == 1

Definition at line 156 of file agx/Jacobian.h.

References agxAssert, and agx::Jacobian6DOFElementT< T >::m_data.

◆ rotational() [1/2]

template<typename T >
T & agx::Jacobian6DOFElementT< T >::rotational ( )
inline
Returns
the rotational vector

Definition at line 181 of file agx/Jacobian.h.

References agx::Jacobian6DOFElementT< T >::m_data.

Referenced by agx::mult(), and agx::Jacobian6DOFElementT< T >::operator==().

◆ rotational() [2/2]

template<typename T >
const T & agx::Jacobian6DOFElementT< T >::rotational ( ) const
inline
Returns
the rotational vector

Definition at line 189 of file agx/Jacobian.h.

References agx::Jacobian6DOFElementT< T >::m_data.

◆ set()

template<typename T >
void agx::Jacobian6DOFElementT< T >::set ( const T &  v1,
const T &  v2 
)
inline

Assignment.

Parameters
v1- new spatial part
v2- new rotational part

Definition at line 245 of file agx/Jacobian.h.

References agx::Jacobian6DOFElementT< T >::m_data.

◆ spatial() [1/2]

template<typename T >
T & agx::Jacobian6DOFElementT< T >::spatial ( )
inline
Returns
the spatial vector

Definition at line 165 of file agx/Jacobian.h.

References agx::Jacobian6DOFElementT< T >::m_data.

Referenced by agx::mult(), and agx::Jacobian6DOFElementT< T >::operator==().

◆ spatial() [2/2]

template<typename T >
const T & agx::Jacobian6DOFElementT< T >::spatial ( ) const
inline
Returns
the spatial vector

Definition at line 173 of file agx/Jacobian.h.

References agx::Jacobian6DOFElementT< T >::m_data.

Member Data Documentation

◆ m_data


The documentation for this class was generated from the following file: