add curve tangent and unit test