예제 #1
0
        public void Circle(Color color, Vector2 position, double radius, int sides = 12, float thickness = 1)
        {
            List <Vector2> c = ShapeCache.GetCircle(radius, sides);

            Polygon(color, position, c, thickness);
        }
예제 #2
0
        public void Arc(Color color, Vector2 center, float radius, int sides, Rotation startingAngle, Rotation radians, float thickness = 1)
        {
            List <Vector2> arc = ShapeCache.GetArc(radius, sides, startingAngle.Radians, radians.Radians);

            Polygon(color, center, arc, thickness);
        }