findCubicCurvePoints

Using De Casteljau’s algorithm to find the intermediate points on the curve

Return

a point which lies on the curve based on t value

Parameters

t

: value between 0 and 1

p0

: start point of the curve

p1

: control point 2

p3

: end point of the curve