Example #1
0
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();
}
Example #2
0
		/**
		 * 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;
		}