from http://paulbourke.net/geometry/bezier/index.html three control point bezier interpolation mu ranges from 0 to 1 , start to end of the curve concode_field_sep PlaceHolder placeHolder concode_field_sep Point cubicBezier concode_elem_sep List<Point> cubicSplineControlPoints
Point function ( Point arg0 , Point arg1 , Point arg2 , double arg3 ) { double loc0 , loc1 , loc2 ; Point loc3 = new Point ( ) ; loc2 = arg3 * arg3 ; loc0 = 1 - arg3 ; loc1 = loc0 * loc0 ; loc3 . x = arg0 . x * loc1 + 2 * arg1 . x * loc0 * arg3 + arg2 . x * loc2 ; loc3 . y = arg0 . y * loc1 + 2 * arg1 . y * loc0 * arg3 + arg2 . y * loc2 ; return ( loc3 ) ; }