1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added an alternative version of Path::addPieSegment()

This commit is contained in:
jules 2015-03-04 14:42:18 +00:00
parent 5775d62810
commit cd48446e89
2 changed files with 38 additions and 1 deletions

View file

@ -656,6 +656,20 @@ void Path::addPieSegment (const float x, const float y,
closeSubPath();
}
void Path::addPieSegment (Rectangle<int> segmentBounds,
const float fromRadians,
const float toRadians,
const float innerCircleProportionalSize)
{
addPieSegment (segmentBounds.getX(),
segmentBounds.getY(),
segmentBounds.getWidth(),
segmentBounds.getHeight(),
fromRadians,
toRadians,
innerCircleProportionalSize);
}
//==============================================================================
void Path::addLineSegment (const Line<float>& line, float lineThickness)
{