31 *
this /= std::sqrt(this->
length2());
66 printf(
"btReducedVector testAdd failed\n");
102 printf(
"btReducedVector testMinus failed\n");
131 printf(
"btReducedVector testDot failed\n");
155 printf(
"btReducedVector testMultiply failed\n");
164 printf(
"All tests passed\n");
const T & btMax(const T &a, const T &b)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
The btAlignedObjectArray template class uses a subset of the stl::vector interface for its methods It...
void clear()
clear the array, deallocated memory. Generally it is better to use array.resize(0),...
void push_back(const T &_Val)
btAlignedObjectArray< int > m_indices
btReducedVector proj(const btReducedVector &other) const
btAlignedObjectArray< btVector3 > m_vecs
btScalar dot(const btReducedVector &other) const
bool testMultiply() const
btVector3 can be used to represent 3D points and vectors.