public static void DrawTriangle(SpriteBatch spriteBatch, float width, Color color, Vector2 pointA, Vector2 pointB, Vector2 pointC) { LineDrawer.DrawLine(spriteBatch, width, color, pointA, pointB); LineDrawer.DrawLine(spriteBatch, width, color, pointB, pointC); LineDrawer.DrawLine(spriteBatch, width, color, pointC, pointA); }
public static void DrawSolidRectangle(SpriteBatch spriteBatch, Color color, Rectangle Rec, float Roation, Vector2 Center) { float width = Rec.Width; LineDrawer.DrawLine(spriteBatch, width, color, RotatePoint(Center, Roation, new Vector2(Rec.Center.X, Rec.Bottom)), RotatePoint(Center, Roation, new Vector2(Rec.Center.X, Rec.Top))); }
public void Draw(SpriteBatch spriteBatch, Vector2 Offset) { // TO DO: Add in code for Rotation around a Point that is not the Origin LineDrawer.DrawLine(spriteBatch, width, color, startPoint + Offset, endPoint + Offset); }
public static void DrawSolidRectangle(SpriteBatch spriteBatch, Color color, Rectangle Rec) { float width = Rec.Width; LineDrawer.DrawLine(spriteBatch, width, color, new Vector2(Rec.Center.X, Rec.Bottom), new Vector2(Rec.Center.X, Rec.Top)); }
public void Draw(SpriteBatch spriteBatch) { LineDrawer.DrawLine(spriteBatch, width, color, startPoint, endPoint); }