Re: Adding support for quadratic beziers

Chris Wilson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <1344468068_61034@CP5-2952>
On Thu, 9 Aug 2012 04:23:51 +0530, Shriramana Sharma <[email protected]> wrote:
> I'm sure the people here know that a quadratic represented by the
> points (s, c, e) is identical to the cubic represented by (s,
> (s+2c)/3, (e+2c)/3, e) -- so I was wondering why isn't it available in
> Cairo? At least at a user level even if not in the underlying data
> (because I realize many/most backends don't implement a separate
> quadTo)?

This is exactly why it was decided that Cairo did not need to handle
quadratic bezeirs; users could simply specify a quadratical bezier using
a cubic form. That said we have a number of other convenience functions,
and could have easily hid that we only use cubic beziers internally.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.