Example #1
0
    // Token: 0x0600002A RID: 42 RVA: 0x00003256 File Offset: 0x00001456

    /*public static void DrawCircle(Vector2 center, int radius, Color color, float width, int segmentsPerQuarter)
     * {
     *      Rendering.DrawCircle(center, radius, color, width, false, segmentsPerQuarter);
     * }*/

    // Token: 0x0600002B RID: 43 RVA: 0x00003268 File Offset: 0x00001468
    public static void DrawBezierLine(Vector2 start, Vector2 startTangent, Vector2 end, Vector2 endTangent, Color color, float width, bool antiAlias, int segments)
    {
        Vector2 pointA = Rendering.CubeBezier(start, startTangent, end, endTangent, 0f);

        for (int i = 1; i < segments + 1; i++)
        {
            Vector2 vector = Rendering.CubeBezier(start, startTangent, end, endTangent, (float)i / (float)segments);
            Rendering.DrawLine3(pointA, vector, color, width, antiAlias);
            pointA = vector;
        }
    }