16#ifndef BT_BACKWARD_EULER_OBJECTIVE_H
17#define BT_BACKWARD_EULER_OBJECTIVE_H
145 for (
int i = 0; i <
vec.size(); ++i)
159 for (
int i = 0; i <
residual.size(); ++i)
168 for (
int d = 0; d <
lm.m_num_constraints; ++d)
170 for (
int n = 0; n <
lm.m_num_nodes; ++n)
191 for (
int i = 0; i <
m_lf.
size(); ++i)
194 m_lf[i]->addScaledDampingForceDifferential(-
m_dt, dv, f);
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...
int size() const
return the number of elements in the array
void clear()
clear the array, deallocated memory. Generally it is better to use array.resize(0),...
void push_back(const T &_Val)
The btSoftBody is an class to simulate cloth and volumetric soft bodies.
btVector3 can be used to represent 3D points and vectors.