Ejemplo n.º 1
0
void SimpleDraw::DrawArrowDoubleDirected( const Vec3d & pos, const Vec3d & normal, float height /*= 1.0f*/, 
										 bool isForward /*= true*/, bool isFilledBase /*= true*/ )
{
	DrawArrowDirected(pos, normal, height, isForward, isFilledBase);

	glColor3f(1,0,0);
	DrawArrowDirected(pos, -normal, height, isForward, isFilledBase);
}
Ejemplo n.º 2
0
void SimpleDraw::PointArrowAt( Vec3d  point, float radius /*= 1.0f*/ )
{
	DrawArrowDirected(point, point + (double(radius) * Vec3d (Max(0.2, point.x()),point.y(),point.z()).normalized()), radius, false);
}
Ejemplo n.º 3
0
void SimpleDraw::PointArrowAt( Vec point, float radius /*= 1.0f*/ )
{
	DrawArrowDirected(point, point + (radius*Vec(Max(0.2, point.x),point.y,point.z).unit()), radius, false);
}