#include <RigidDeriv.h>
Static Public Attributes | |
static constexpr sofa::Size | total_size = 3 |
Compile-time constant specifying the number of scalars within this vector (equivalent to the size() method) More... | |
static constexpr sofa::Size | spatial_dimensions = 2 |
Compile-time constant specifying the number of dimensions of space (NOT equivalent to total_size for rigids) More... | |
Public Member Functions | |
constexpr | RigidDeriv (type::NoInit) |
constexpr | RigidDeriv () |
template<typename real2 > | |
constexpr | RigidDeriv (const type::Vec< 2, real2 > &velCenter, const real2 &velOrient) |
template<typename real2 > | |
constexpr | RigidDeriv (const type::Vec< 3, real2 > &v) |
constexpr void | clear () |
template<typename real2 > | |
constexpr void | operator= (const RigidDeriv< 2, real2 > &c) |
template<typename real2 > | |
constexpr void | operator= (const type::Vec< 2, real2 > &v) |
template<typename real2 > | |
constexpr void | operator= (const type::Vec< 3, real2 > &v) |
constexpr void | operator+= (const RigidDeriv< 2, real > &a) |
constexpr void | operator-= (const RigidDeriv< 2, real > &a) |
constexpr RigidDeriv< 2, real > | operator+ (const RigidDeriv< 2, real > &a) const |
constexpr RigidDeriv< 2, real > | operator- (const RigidDeriv< 2, real > &a) const |
template<typename real2 > | |
constexpr void | operator*= (real2 a) |
template<typename real2 > | |
constexpr void | operator/= (real2 a) |
constexpr RigidDeriv< 2, real > | operator- () const |
constexpr Real | operator* (const RigidDeriv< 2, real > &a) const |
dot product, mostly used to compute residuals as sqrt(x*x) More... | |
Real | norm () const |
Euclidean norm. More... | |
constexpr Vec2 & | getVCenter () |
constexpr Real & | getVOrientation () |
constexpr const Vec2 & | getVCenter () const |
constexpr const Real & | getVOrientation () const |
constexpr Vec2 & | getLinear () |
constexpr Real & | getAngular () |
constexpr const Vec2 & | getLinear () const |
constexpr const Real & | getAngular () const |
constexpr VecAll | getVAll () const |
constexpr Vec2 | velocityAtRotatedPoint (const Vec2 &p) const |
Velocity at point p, where p is the offset from the origin of the frame, given in the same coordinate system as the velocity of the origin. More... | |
constexpr real * | ptr () |
constexpr const real * | ptr () const |
constexpr real & | operator[] (Size i) |
Access to i-th element. More... | |
constexpr const real & | operator[] (Size i) const |
Const access to i-th element. More... | |
Tests operators | |
constexpr bool | operator== (const RigidDeriv< 2, real > &b) const |
constexpr bool | operator!= (const RigidDeriv< 2, real > &b) const |
Static Public Member Functions | |
static constexpr Size | size () |
Friends | |
class | RigidCoord< 2, real > |
std::ostream & | operator<< (std::ostream &out, const RigidDeriv< 2, real > &v) |
write to an output stream More... | |
std::istream & | operator>> (std::istream &in, RigidDeriv< 2, real > &v) |
read from an input stream More... | |
|
staticconstexpr |
Compile-time constant specifying the number of dimensions of space (NOT equivalent to total_size for rigids)
|
staticconstexpr |
Compile-time constant specifying the number of scalars within this vector (equivalent to the size() method)
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
Euclidean norm.
|
inlineconstexpr |
|
inlineconstexpr |
dot product, mostly used to compute residuals as sqrt(x*x)
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Access to i-th element.
|
inlineconstexpr |
Const access to i-th element.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
Velocity at point p, where p is the offset from the origin of the frame, given in the same coordinate system as the velocity of the origin.
|
friend |
write to an output stream
|
friend |
read from an input stream
|
friend |