• 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: mathematical area of closed vector path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: mathematical area of closed vector path


  • Subject: RE: mathematical area of closed vector path
  • From: Jeff Laing <email@hidden>
  • Date: Tue, 25 Jan 2005 13:55:06 +1100

> 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).

We do it by brute force.

First, imagine that its all straight line segments. Calculate the area using
the algorithm here:

http://astronomy.swin.edu.au/~pbourke/geometry/polyarea/

Next iterate through each segment that is an arc, compute the area of the
subtended sector, then subtract or add that (depending on whether its
concave or convex)

http://mathforum.org/dr.math/faq/formulas/faq.circle.html

Jeff Laing <email@hidden>
----------------------------------------------------------------------------
And should you still be unconvinced of the possibility of ingesting
information
without consciously conceptualising it, here is a little test. If you see
some-
one in the street looking at his watch, instantly approach him and ask him
the
time. On nine occasions out of ten he will be obliged to consult his watch
all
over again ...         -- Gilbert Adair, "The postmodernist always rings
twice"
 _______________________________________________
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: Document bundles and rude users
  • Previous by thread: Re: mathematical area of closed vector path
  • Next by thread: Re: mathematical area of closed vector path
  • Index(es):
    • Date
    • Thread