src/NFtest/agentcell/cell/cell.cpp
//Changes the cell direction uniformly random over all possible new directions
Changes the cell direction uniformly random over all possible new directions
Changes the cell direction uniformly random over all possible new directions
void AgentCell::changeDirRandom()
{
	lastDir[X]=dir[X]; lastDir[Y]=dir[Y]; lastDir[Z]=dir[Z];
	lastUp[X]=up[X]; lastUp[Y]=up[Y]; lastUp[Z]=up[Z];
	ChemotaxisUtil::genUniformRandRotation3d(rotMat);
	ChemotaxisUtil::applyRotation(rotMat,dir);
	ChemotaxisUtil::applyRotation(rotMat,up);
}
void AgentCell :: changeDirRandom ( ) { lastDir [ X ] = dir [ X ] ; lastDir [ Y ] = dir [ Y ] ; lastDir [ Z ] = dir [ Z ] ; lastUp [ X ] = up [ X ] ; lastUp [ Y ] = up [ Y ] ; lastUp [ Z ] = up [ Z ] ; ChemotaxisUtil :: genUniformRandRotation3d ( rotMat ) ; ChemotaxisUtil :: applyRotation ( rotMat , dir ) ; ChemotaxisUtil :: applyRotation ( rotMat , up ) ; }
Changes the cell direction uniformly random over all possible new directions
Changes the cell direction uniformly random over all possible new directions