Closed 5o50 closed 4 years ago
The documentation says :
void Circle(VGfloat x, VGfloat y, VGfloat r) Draw a circle centered at (x,y) with radius r.
void Circle(VGfloat x, VGfloat y, VGfloat r)
Draw a circle centered at (x,y) with radius r.
Circle() is just a wrapper around Ellipse() that directly pass r parameter, thus the advertised r (radius) for Circle() must not be used as a radius but as a diameter at the current state of the codebase. see : https://github.com/ajstarks/openvg/blob/2b32039b3a540bb41f3d88460342700e2e04b5a7/libshapes.c#L608-L619
Circle()
Ellipse()
r
Please adapt the documentation to reflect this behaviour or adapt the code.
Thank you
fixed.
The documentation says :
void Circle(VGfloat x, VGfloat y, VGfloat r)
Draw a circle centered at (x,y) with radius r.
Circle()
is just a wrapper aroundEllipse()
that directly passr
parameter, thus the advertisedr
(radius) forCircle()
must not be used as a radius but as a diameter at the current state of the codebase. see : https://github.com/ajstarks/openvg/blob/2b32039b3a540bb41f3d88460342700e2e04b5a7/libshapes.c#L608-L619Please adapt the documentation to reflect this behaviour or adapt the code.
Thank you