public class RigidBodySolver
extends java.lang.Object
Constructor and Description |
---|
RigidBodySolver(MechSystem sys) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
finalize() |
int[] |
getDTMap() |
VectorNi |
getLcpState() |
boolean |
projectFriction(SparseBlockMatrix M,
SparseBlockMatrix GT,
SparseBlockMatrix NT,
SparseBlockMatrix DT,
VectorNd Rg,
VectorNd bg,
VectorNd Rn,
VectorNd bn,
VectorNd Rd,
VectorNd bd,
java.util.ArrayList<FrictionInfo> finfo,
VectorNi state,
VectorNd vel,
VectorNd lam,
VectorNd the,
VectorNd phi) |
boolean |
projectPosition(SparseBlockMatrix M,
SparseBlockMatrix GT,
SparseBlockMatrix NT,
VectorNd bg,
VectorNd bn,
VectorNd vel,
VectorNd lam,
VectorNd the) |
boolean |
projectVelocity(SparseBlockMatrix M,
SparseBlockMatrix GT,
SparseBlockMatrix NT,
VectorNd bg,
VectorNd bn,
VectorNd vel,
VectorNd lam,
VectorNd the) |
void |
resetBilateralVersion()
Called to ensure that structure will be updated the next time
updateStructure is called.
|
boolean |
updateStructure(SparseBlockMatrix M,
SparseBlockMatrix GT,
int GTversion) |
public RigidBodySolver(MechSystem sys)
public int[] getDTMap()
public boolean updateStructure(SparseBlockMatrix M, SparseBlockMatrix GT, int GTversion)
public void resetBilateralVersion()
public boolean projectVelocity(SparseBlockMatrix M, SparseBlockMatrix GT, SparseBlockMatrix NT, VectorNd bg, VectorNd bn, VectorNd vel, VectorNd lam, VectorNd the)
public boolean projectPosition(SparseBlockMatrix M, SparseBlockMatrix GT, SparseBlockMatrix NT, VectorNd bg, VectorNd bn, VectorNd vel, VectorNd lam, VectorNd the)
public boolean projectFriction(SparseBlockMatrix M, SparseBlockMatrix GT, SparseBlockMatrix NT, SparseBlockMatrix DT, VectorNd Rg, VectorNd bg, VectorNd Rn, VectorNd bn, VectorNd Rd, VectorNd bd, java.util.ArrayList<FrictionInfo> finfo, VectorNi state, VectorNd vel, VectorNd lam, VectorNd the, VectorNd phi)
public VectorNi getLcpState()
public void dispose()
public void finalize()
finalize
in class java.lang.Object