public void DrawSideAttackAgroLine(Clio.Utilities.Vector3 center, float heading, float width, float height, Color color) { DrawSideAttackAgroLine(center.Convert(), heading, width, height, color); //var newCenter = new Vector3(center.X, center.Y, center.Z); //float diag = (float)Math.Sqrt(height * height + width * width) / 2; //float subangle = (float)Math.Atan2(width / 2, height / 2); //float h = (float)(((Math.PI * 2) - heading)); //float r1 = h - subangle; //float r2 = h + subangle + (float)Math.PI; //float r3 = h - subangle + (float)Math.PI; //float r4 = h + subangle; //_vertexBuffer[0] = new ColoredVertex(newCenter, color); //_vertexBuffer[1] = new ColoredVertex(newCenter + new Vector3((float)Math.Cos(r1) * diag, 0, (float)Math.Sin(r1) * diag), color); //_vertexBuffer[2] = new ColoredVertex(newCenter + new Vector3((float)Math.Cos(r2) * diag, 0, (float)Math.Sin(r2) * diag), color); //_vertexBuffer[3] = new ColoredVertex(newCenter + new Vector3((float)Math.Cos(r3) * diag, 0, (float)Math.Sin(r3) * diag), color); //_vertexBuffer[4] = new ColoredVertex(newCenter + new Vector3((float)Math.Cos(r4) * diag, 0, (float)Math.Sin(r4) * diag), color); //_vertexBuffer[5] = _vertexBuffer[1]; //SetDeclaration(); //Device.DrawUserPrimitives(PrimitiveType.TriangleFan, 4, _vertexBuffer); }
public void DrawCircleOutline(Clio.Utilities.Vector3 center, float radius, Color color) { DrawOutlinedBox(center.Convert(), new Vector3(radius), color); }
public void DrawBoxOutline(Clio.Utilities.Vector3 center, Clio.Utilities.Vector3 extents, Color color) { DrawOutlinedBox(center.Convert(), extents.Convert(), color); }
public void DrawLine(Clio.Utilities.Vector3 start, Clio.Utilities.Vector3 end, Color color) { DrawLine(start.Convert(), end.Convert(), color); }
public void DrawCircle(Clio.Utilities.Vector3 center, float radius, Color color) { DrawCircle(center.Convert(), radius, color); }
public void DrawAgroLine(Clio.Utilities.Vector3 center, float heading, float width, float height, Color color, Color pointColor) { DrawAgroLine(center.Convert(), heading, width, height, color, pointColor); }
public void DrawCircleWithPoint(Clio.Utilities.Vector3 center, float heading, float radius, Color color, Color pointColor) { DrawCircleWithPoint(center.Convert(), heading, radius, color, pointColor); }