void Line::perturbDirection() { //direction.x += LineRandomNum(); //direction.y += LineRandomNum(); //direction.z += LineRandomNum(); direction.x += LineRandomNum() * 0.001f; direction.y += LineRandomNum() * 0.001f; direction.z += LineRandomNum() * 0.001f; //direction.Normalise(); }
/** * Method is used to perturb line direction. */ void Line::perturbDirection() { direction.x += LineRandomNum() * 0.001f; direction.y += LineRandomNum() * 0.001f; direction.z += LineRandomNum() * 0.001f; }