◆
GetArcRect()
static Rect GetArcRect
(
float
radius
,
float
curveAngle
,
float
startingAngle
)
static
Parameters
radius
The radius of the arc
curveAngle
the total angle the arc will span. Both positive and negative values are acceptable here.
startingAngle
the starting angle or the arc. The final angle will be equal to this value plus the angle span.
Returns
A Rect, specifying position, width and height, that minimally encapsulates the specified arc.
EyE
Unity
Extensions
RectExtensions