VectorShapeUtils.ClosetPointOnBezierCurve(UnityEngine.Vector2, UnityEngine.Vector2, UnityEngine.Vector2, UnityEngine.Vector2, UnityEngine.Vector2)

Here are the examples of the csharp api VectorShapeUtils.ClosetPointOnBezierCurve(UnityEngine.Vector2, UnityEngine.Vector2, UnityEngine.Vector2, UnityEngine.Vector2, UnityEngine.Vector2) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 View Source File : VectorShapeUtils.cs
License : MIT License
Project Creator : ecurtz

public static float DistancePointToBezierCurve(Vector2 pt, Vector2 curveA, Vector2 controlA, Vector2 controlB, Vector2 curveB)
	{
		Vector2 closest = ClosetPointOnBezierCurve(pt, curveA, controlA, curveB, controlB);

		return Vector2.Distance(pt, closest);
	}