/// <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)); }
/// <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))); }