Blender V4.3
btReducedVector Class Reference

#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
 
btReducedVectoroperator= (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< intm_indices
 
btAlignedObjectArray< btVector3m_vecs
 
int m_sz
 

Detailed Description

Definition at line 26 of file btReducedVector.h.

Constructor & Destructor Documentation

◆ btReducedVector() [1/3]

btReducedVector::btReducedVector ( )
inline

◆ btReducedVector() [2/3]

btReducedVector::btReducedVector ( int sz)
inline

◆ btReducedVector() [3/3]

btReducedVector::btReducedVector ( int sz,
const btAlignedObjectArray< int > & indices,
const btAlignedObjectArray< btVector3 > & vecs )
inline

Definition at line 49 of file btReducedVector.h.

Member Function Documentation

◆ dot() [1/2]

btScalar btReducedVector::dot ( const btAlignedObjectArray< btVector3 > & other) const
inline

Definition at line 217 of file btReducedVector.h.

References m_indices, m_vecs, ret, and btAlignedObjectArray< T >::size().

◆ dot() [2/2]

btScalar btReducedVector::dot ( const btReducedVector & other) const
inline

Definition at line 198 of file btReducedVector.h.

References m_indices, m_vecs, ret, and btAlignedObjectArray< T >::size().

Referenced by length2(), proj(), and testDot().

◆ length2()

btScalar btReducedVector::length2 ( ) const
inline

Definition at line 227 of file btReducedVector.h.

References dot().

Referenced by normalize(), and simplify().

◆ normalize()

void btReducedVector::normalize ( )

◆ operator!=()

bool btReducedVector::operator!= ( const btReducedVector & other) const
inline

Definition at line 181 of file btReducedVector.h.

◆ operator+()

btReducedVector btReducedVector::operator+ ( const btReducedVector & other)
inline

Definition at line 71 of file btReducedVector.h.

References m_indices, m_sz, m_vecs, ret, and btAlignedObjectArray< T >::size().

◆ operator-() [1/2]

btReducedVector btReducedVector::operator- ( )
inline

Definition at line 112 of file btReducedVector.h.

References m_indices, m_sz, m_vecs, ret, and btAlignedObjectArray< T >::size().

◆ operator-() [2/2]

btReducedVector btReducedVector::operator- ( const btReducedVector & other)
inline

Definition at line 124 of file btReducedVector.h.

References m_indices, m_sz, m_vecs, ret, and btAlignedObjectArray< T >::size().

◆ operator=()

btReducedVector & btReducedVector::operator= ( const btReducedVector & other)
inline

Definition at line 186 of file btReducedVector.h.

References btAlignedObjectArray< T >::copyFromArray(), m_indices, m_sz, and m_vecs.

◆ operator==()

bool btReducedVector::operator== ( const btReducedVector & other) const
inline

Definition at line 165 of file btReducedVector.h.

References m_indices, m_sz, m_vecs, and btAlignedObjectArray< T >::size().

◆ print()

void btReducedVector::print ( ) const
inline

Definition at line 247 of file btReducedVector.h.

References m_indices, m_vecs, printf, and btAlignedObjectArray< T >::size().

◆ proj()

btReducedVector btReducedVector::proj ( const btReducedVector & other) const

Definition at line 12 of file btReducedVector.cpp.

References dot(), m_sz, ret, and SIMD_EPSILON.

◆ simplify()

◆ sort()

◆ test()

void btReducedVector::test ( ) const

Definition at line 159 of file btReducedVector.cpp.

References printf, testAdd(), testDot(), testMinus(), and testMultiply().

◆ testAdd()

bool btReducedVector::testAdd ( ) const

Definition at line 34 of file btReducedVector.cpp.

References btVector3, printf, btAlignedObjectArray< T >::push_back(), ret, and v2.

Referenced by test().

◆ testDot()

bool btReducedVector::testDot ( ) const

Definition at line 106 of file btReducedVector.cpp.

References btVector3, dot(), printf, btAlignedObjectArray< T >::push_back(), ret, and v2.

Referenced by test().

◆ testMinus()

bool btReducedVector::testMinus ( ) const

Definition at line 70 of file btReducedVector.cpp.

References btVector3, printf, btAlignedObjectArray< T >::push_back(), ret, and v2.

Referenced by test().

◆ testMultiply()

bool btReducedVector::testMultiply ( ) const

Definition at line 135 of file btReducedVector.cpp.

References btVector3, printf, btAlignedObjectArray< T >::push_back(), ret, and v2.

Referenced by test().

Member Data Documentation

◆ m_indices

◆ m_sz

int btReducedVector::m_sz

Definition at line 31 of file btReducedVector.h.

Referenced by operator+(), operator-(), operator-(), operator=(), operator==(), and proj().

◆ m_vecs


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