• 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: Adding some polar coordinate capabilities to NSBezierPath.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding some polar coordinate capabilities to NSBezierPath.


  • Subject: Re: Adding some polar coordinate capabilities to NSBezierPath.
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 18 Oct 2001 22:49:26 +0100

John,

>>>>>> John C. Randolph (JCR) wrote at Thu, 18 Oct 2001 06:33:08 -0700:
JCR> BTW, after thinking about it a bit more, I realized that an NSPoint
JCR> (since it consists of a pair of floats) was a perfectly good structure
JCR> to store a polar coordinate.

I am not that sure, but I would personally prefer defining "another point"
with more descriptive items, like

typedef _XXPolarPoint { float angle/*rads*/; float length; } XXPolarPoint;

Not that I would like to have an API swarming by different types which are,
in fact, actually the very same thing, but still I somehow don't like the
idea of naming my angle 'x' and the vector length 'y' (or vice versa)...
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc


References: 
 >Re: Adding some polar coordinate capabilities to NSBezierPath. (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: Finding which control is selected
  • Next by Date: Re: Help with pasteboard
  • Previous by thread: Re: Adding some polar coordinate capabilities to NSBezierPath.
  • Next by thread: Changing hostname in Cocoa?
  • Index(es):
    • Date
    • Thread