Use WDBezierSegmentCalculatePointAtT() to eliminate some code.