void
Arc
(
float3 | center | Center of the imaginary circle that the arc is part of. |
float3 | start | Starting point of the arc. |
float3 | end | End point of the arc. |
)
Draws an arc between two points.
The rendered arc is the shortest arc between the two points. The radius of the arc will be equal to the distance between center and start.
float a1 = Mathf.PI*0.9f;
float a2 = Mathf.PI*0.1f;
var arcStart = new float3(Mathf.Cos(a1), 0, Mathf.Sin(a1));
var arcEnd = new float3(Mathf.Cos(a2), 0, Mathf.Sin(a2));
Draw.Arc(new float3(0, 0, 0), arcStart, arcEnd, color);