public void Draw(SpriteBatch batch) { if (!IsVisible) return; if (Vertices.Count == 0) return; switch (Type) { case PrimitiveType.Pixel: batch.PutPixel(Vertices[0], Color); break; case PrimitiveType.Line: batch.DrawLine(Vertices[0], Vertices[1], Color, Thickness); break; } }