Bug 5649

Summary: cairo_arc() docs say pi radians = 90 degrees
Product: cairo Reporter: Ken Harris <kengruven>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: trivial    
Priority: high    
Version: 1.1.1   
Hardware: All   
OS: All   
URL: http://www.cairographics.org/manual/cairo-Paths.html#cairo-arc
Whiteboard:
i915 platform: i915 features:

Description Ken Harris 2006-01-19 03:48:47 UTC
The docs for cairo_arc() say "An angle of M_PI radians (90 degrees) is in the
direction of the positive Y axis (in user-space)."  But 90 degrees is pi/2
radians, not pi radians.
Comment 1 Carl Worth 2006-01-19 04:43:03 UTC
Fixed in cairo 1.1.1:

2006-01-18  Carl Worth  <cworth@cworth.org>

        * src/cairo.c: Fix documentation of cairo_arc which erroneously
        claimed M_PI radians == 90 degrees to correctly say that M_PI/2.0
        radians == 90 degrees. This closes bug #5649 (with thanks to
        kengruven@gmail.com).

-Carl

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.