Blender
V3.3
|
#include <btReducedVector.h>
Public Member Functions | |
btReducedVector () | |
btReducedVector (int sz) | |
btReducedVector (int sz, const btAlignedObjectArray< int > &indices, const btAlignedObjectArray< btVector3 > &vecs) | |
void | simplify () |
btReducedVector | operator+ (const btReducedVector &other) |
btReducedVector | operator- () |
btReducedVector | operator- (const btReducedVector &other) |
bool | operator== (const btReducedVector &other) const |
bool | operator!= (const btReducedVector &other) const |
btReducedVector & | operator= (const btReducedVector &other) |
btScalar | dot (const btReducedVector &other) const |
btScalar | dot (const btAlignedObjectArray< btVector3 > &other) const |
btScalar | length2 () const |
void | normalize () |
btReducedVector | proj (const btReducedVector &other) const |
bool | testAdd () const |
bool | testMinus () const |
bool | testDot () const |
bool | testMultiply () const |
void | test () const |
void | print () const |
void | sort () |
Public Attributes | |
btAlignedObjectArray< int > | m_indices |
btAlignedObjectArray< btVector3 > | m_vecs |
int | m_sz |
Definition at line 26 of file btReducedVector.h.
|
inline |
Definition at line 33 of file btReducedVector.h.
References btAlignedObjectArray< T >::clear(), m_indices, m_vecs, and btAlignedObjectArray< T >::resize().
|
inline |
Definition at line 41 of file btReducedVector.h.
References btAlignedObjectArray< T >::clear(), m_indices, m_vecs, and btAlignedObjectArray< T >::resize().
|
inline |
Definition at line 49 of file btReducedVector.h.
|
inline |
Definition at line 217 of file btReducedVector.h.
References m_indices, m_vecs, ret, and btAlignedObjectArray< T >::size().
|
inline |
Definition at line 198 of file btReducedVector.h.
References m_indices, m_vecs, ret, and btAlignedObjectArray< T >::size().
|
inline |
Definition at line 227 of file btReducedVector.h.
References dot().
Referenced by normalize(), proj(), and simplify().
void btReducedVector::normalize | ( | ) |
Definition at line 23 of file btReducedVector.cpp.
References btAlignedObjectArray< T >::clear(), length2(), m_indices, m_vecs, SIMD_EPSILON, and sqrt().
|
inline |
Definition at line 181 of file btReducedVector.h.
|
inline |
Definition at line 71 of file btReducedVector.h.
References m_indices, m_sz, m_vecs, ret, and btAlignedObjectArray< T >::size().
|
inline |
Definition at line 112 of file btReducedVector.h.
References m_indices, m_sz, m_vecs, ret, and btAlignedObjectArray< T >::size().
|
inline |
Definition at line 124 of file btReducedVector.h.
References m_indices, m_sz, m_vecs, ret, and btAlignedObjectArray< T >::size().
|
inline |
Definition at line 186 of file btReducedVector.h.
References btAlignedObjectArray< T >::copyFromArray(), m_indices, m_sz, and m_vecs.
|
inline |
Definition at line 165 of file btReducedVector.h.
References m_indices, m_sz, m_vecs, and btAlignedObjectArray< T >::size().
|
inline |
Definition at line 247 of file btReducedVector.h.
References m_indices, m_vecs, and btAlignedObjectArray< T >::size().
btReducedVector btReducedVector::proj | ( | const btReducedVector & | other | ) | const |
Definition at line 12 of file btReducedVector.cpp.
References dot(), length2(), m_sz, ret, and SIMD_EPSILON.
|
inline |
Definition at line 53 of file btReducedVector.h.
References btAlignedObjectArray< T >::clear(), length2(), m_indices, m_vecs, btAlignedObjectArray< T >::push_back(), btAlignedObjectArray< T >::resize(), SIMD_EPSILON, and btAlignedObjectArray< T >::size().
|
inline |
Definition at line 257 of file btReducedVector.h.
References TwoInts::a, Freestyle::a, TwoInts::b, usdtokens::b(), m_indices, m_vecs, btAlignedObjectArray< T >::push_back(), btAlignedObjectArray< T >::size(), and sort().
Referenced by btDeformableContactProjection::setProjection().
void btReducedVector::test | ( | ) | const |
Definition at line 159 of file btReducedVector.cpp.
References testAdd(), testDot(), testMinus(), and testMultiply().
bool btReducedVector::testAdd | ( | ) | const |
Definition at line 34 of file btReducedVector.cpp.
References btVector3, btAlignedObjectArray< T >::push_back(), ret, v1, and v2.
Referenced by test().
bool btReducedVector::testDot | ( | ) | const |
Definition at line 106 of file btReducedVector.cpp.
References btVector3, dot(), btAlignedObjectArray< T >::push_back(), ret, v1, and v2.
Referenced by test().
bool btReducedVector::testMinus | ( | ) | const |
Definition at line 70 of file btReducedVector.cpp.
References btVector3, btAlignedObjectArray< T >::push_back(), ret, v1, and v2.
Referenced by test().
bool btReducedVector::testMultiply | ( | ) | const |
Definition at line 135 of file btReducedVector.cpp.
References btVector3, btAlignedObjectArray< T >::push_back(), ret, v1, and v2.
Referenced by test().
btAlignedObjectArray<int> btReducedVector::m_indices |
Definition at line 29 of file btReducedVector.h.
Referenced by btReducedVector(), dot(), normalize(), operator+(), operator-(), operator=(), operator==(), print(), btDeformableContactProjection::project(), btDeformableContactProjection::setProjection(), simplify(), and sort().
int btReducedVector::m_sz |
Definition at line 31 of file btReducedVector.h.
Referenced by operator+(), operator-(), operator=(), operator==(), and proj().
btAlignedObjectArray<btVector3> btReducedVector::m_vecs |
Definition at line 30 of file btReducedVector.h.
Referenced by btReducedVector(), dot(), normalize(), operator+(), operator-(), operator=(), operator==(), print(), btDeformableContactProjection::project(), btDeformableContactProjection::setProjection(), simplify(), and sort().