コード例 #1
0
 /// <summary>
 /// generates an arc from start to end with the arc axis curvatureAxis
 /// </summary>
 /// <returns>The arc.</returns>
 /// <param name="start">Start.</param>
 /// <param name="end">End.</param>
 /// <param name="curvature">how far away from the line from start to end the arc extends</param>
 /// <param name="curvatureAxis">the axis which the arc should extend into</param>
 public static Spline generateArc(Vector3 start, Vector3 end, float curvature, Vector3 curvatureAxis)
 {
     curvatureAxis.Normalize();
     return(Spline.generateArc(start, end, curvature, curvatureAxis, curvatureAxis));
 }
コード例 #2
0
 /// <summary>
 /// generates an arc from start to end with the arc axis perpendicular to start and end points
 /// </summary>
 /// <returns>The arc.</returns>
 /// <param name="start">Start.</param>
 /// <param name="end">End.</param>
 /// <param name="curvature">how far away from the line from start to end the arc extends</param>
 public static Spline generateArc(Vector3 start, Vector3 end, float curvature)
 {
     return(Spline.generateArc(start, end, curvature, Vector3.Cross(start, end)));
 }