Skip navigation.
 
mlRe: NSBezierPath geometry question...
FROM : Robert Clair
DATE : Mon Apr 11 21:02:48 2005

>
> I've read this claim before but never understood it. Since a
> NSBezierPath is a cubic polynomial, why in the world would it have any
> trouble representing an arc, which is a quadratic polynomial?: just
> set the coefficients of the x^3 term to zero, and it IS a quadratic
> polynomial. (or in bezier speak: if the two off axis control points
> are in the same place, you've got a quadratic spline, which should be
> the same as a segment of arc.



You have mixed up your variables - the Bezier is cubic in its
*parameter*, not in the spatial variables X and Y. With my physicist's
hat on I suggest you do an experiment: take a drawing program and enter
a single segment of Bezier curve with end points (1, 0), (0, 1) and
both interior control points set to (1, 1) and then *look* at it. It's
not anywhere remotely close to an approximation of a 90 degree arc.


.....Bob Clair

Related mailsAuthorDate
mlNSBezierPath geometry question... Keith Blount Apr 10, 23:40
mlRe: NSBezierPath geometry question... Serge Meynard Apr 11, 00:37
mlRe: NSBezierPath geometry question... Robert Clair Apr 11, 13:01
mlRe: NSBezierPath geometry question... Keith Blount Apr 11, 13:17
mlRe: NSBezierPath geometry question... Serge Meynard Apr 11, 16:02
mlRe: NSBezierPath geometry question... Nicko van Someren Apr 11, 17:48
mlRe: NSBezierPath geometry question... Serge Meynard Apr 11, 18:41
mlRe: NSBezierPath geometry question... David Phillip Oste… Apr 11, 18:46
mlRe: NSBezierPath geometry question... Nicko van Someren Apr 11, 19:48
mlRe: NSBezierPath geometry question... Heinrich Giesen Apr 11, 20:49
mlRe: NSBezierPath geometry question... Robert Clair Apr 11, 21:02
mlRe: NSBezierPath geometry question... Keith Blount Apr 11, 21:19
mlRe: NSBezierPath geometry question... Scott Thompson Apr 11, 23:25
mlRe: NSBezierPath geometry question... Robert Clair Apr 11, 23:54
mlRe: NSBezierPath geometry question... Keith Blount Apr 12, 00:24
mlRe: NSBezierPath geometry question... Nicko van Someren Apr 12, 10:04
mlRe: NSBezierPath geometry question... Keith Blount Apr 12, 18:08
mlRe: NSBezierPath geometry question... Jonathon Mah Apr 13, 17:11