Re: Adding some polar coordinate capabilities to NSBezierPath.
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