• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSBezierPath geometry question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBezierPath geometry question...


  • Subject: Re: NSBezierPath geometry question...
  • From: Robert Clair <email@hidden>
  • Date: Mon, 11 Apr 2005 15:02:48 -0400


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


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</x-tad-bigger>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Launched window not activating
  • Next by Date: Re: Filtering the Contents of an Array Controller
  • Previous by thread: Re: NSBezierPath geometry question...
  • Next by thread: Re: NSBezierPath geometry question...
  • Index(es):
    • Date
    • Thread