Re: Calculating Control Points For Bsplines

Lawrence D'Oliveiro <[email protected]>
Newsgroups gmane.comp.lib.cairo
Organization Geek Central
Message-ID <[email protected]>
On Mon, 14 Dec 2015 10:37:52 +0100, Bernhard Fischer wrote:

> On Saturday 12 December 2015 22:46:17 Lawrence D'Oliveiro wrote:
>
>>     ((angle2 - angle1 + π) mod 2π - π) ÷ 2  
> 
> That's why I do not divide the angles like this (I did that in an
> earlier variant). I calculate the end points of an intermediate line
> and then determine the angle of this. It eliminates the need for
> handling of special cases.

That formula seems to work fine all around my example curve. No need
for special cases.
-- 
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.