Blender V5.0
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< int > m_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

Definition at line 41 of file btReducedVector.h.

References m_indices, m_sz, and m_vecs.

◆ btReducedVector() [3/3]

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

Definition at line 49 of file btReducedVector.h.

References indices, m_indices, m_sz, and m_vecs.

Member Function Documentation

◆ dot() [1/2]

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

Definition at line 217 of file btReducedVector.h.

References i, m_indices, m_vecs, and ret.

◆ dot() [2/2]

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

Definition at line 198 of file btReducedVector.h.

References btReducedVector(), i, 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(), proj(), and simplify().

◆ normalize()

void btReducedVector::normalize ( )

Definition at line 23 of file btReducedVector.cpp.

References length2(), m_indices, m_vecs, and SIMD_EPSILON.

◆ operator!=()

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

Definition at line 181 of file btReducedVector.h.

References btReducedVector().

◆ operator+()

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

◆ operator-() [1/2]

btReducedVector btReducedVector::operator- ( )
inline

Definition at line 112 of file btReducedVector.h.

References btReducedVector(), i, m_indices, m_sz, m_vecs, and ret.

◆ operator-() [2/2]

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

◆ operator=()

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

Definition at line 186 of file btReducedVector.h.

References btReducedVector(), m_indices, m_sz, and m_vecs.

◆ operator==()

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

◆ print()

void btReducedVector::print ( ) const
inline

Definition at line 247 of file btReducedVector.h.

References i, m_indices, m_vecs, and printf.

◆ proj()

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

Definition at line 12 of file btReducedVector.cpp.

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

◆ simplify()

void btReducedVector::simplify ( )
inline

◆ sort()

void btReducedVector::sort ( )
inline

◆ 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 btReducedVector(), 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 btReducedVector(), 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 btReducedVector(), 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 btReducedVector(), btVector3, printf, btAlignedObjectArray< T >::push_back(), ret, and v2.

Referenced by test().

Member Data Documentation

◆ m_indices

◆ m_sz

int btReducedVector::m_sz

◆ m_vecs


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