DistanceToPolyLine() public static method

Pixel distance from mouse pointer to a polyline.

public static DistanceToPolyLine ( ) : float
return float
コード例 #1
0
		public static float DistanceToArc(Vector3 center, Vector3 normal, Vector3 from, float angle, float radius)
		{
			Vector3[] dest = new Vector3[60];
			Handles.SetDiscSectionPoints(dest, center, normal, from, angle, radius);
			return HandleUtility.DistanceToPolyLine(dest);
		}
コード例 #2
0
 internal static float DistanceToPolygone(Vector3[] vertices)
 {
     return(HandleUtility.DistanceToPolyLine(vertices));
 }