Re: Cocoa-dev Digest, Vol 2, Issue 117
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