OpenTK.BezierCurveCubic.CalculatePointOfDerivative C# (CSharp) Method

CalculatePointOfDerivative() private method

Calculates the point with the specified t of the derivative of this function.
private CalculatePointOfDerivative ( float t ) : System.Vector2
t float The t, value between 0.0f and 1.0f.
return System.Vector2
        private Vector2 CalculatePointOfDerivative(float t)
        {
            Vector2 r = new Vector2();
            float c = 1.0f - t;
            r.X = (c * c * StartAnchor.X) + (2 * t * c * FirstControlPoint.X) + (t * t * SecondControlPoint.X);
            r.Y = (c * c * StartAnchor.Y) + (2 * t * c * FirstControlPoint.Y) + (t * t * SecondControlPoint.Y);
            return r;
        }