• 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: Cocoa-dev Digest, Vol 2, Issue 117
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 2, Issue 117


  • Subject: Re: Cocoa-dev Digest, Vol 2, Issue 117
  • From: Ken Turkowski <email@hidden>
  • Date: Mon, 24 Jan 2005 21:15:36 -0800


How would one go about figuring out the mathematical area (xxx units
squared) of a closed vector path?

Note: These paths will not be simple little boxes or circles.  Think
complex paths--composed of mulitple line segments and arc segments
(both convex and concave).

n-1 sum ( ( x[i+1] - x[i] ) * ( y[i+1] + y[i] ) * 0.5 ) i = 0

where the indices are taken modulo n.

--
Ken Turkowski                    email@hidden
Engineer/Scientist   http://www.worldserver.com/turk/
Independent Consultant      Industrial Grade Software
Computer Graphics     2D     3D     Immersive Imagery
Photo-mosaicing       Panoramas       Computer Vision
Applied Mathematics  Numerical Analysis  Optimization

_______________________________________________
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: Database
  • Next by Date: Re: Filtering breaks bindings-enabled app
  • Previous by thread: Re: Filtering breaks bindings-enabled app
  • Next by thread: NSImage, OpenGL, and color spaces
  • Index(es):
    • Date
    • Thread