On Dec 7, 2008, at 3:35 PM, Michael Ash wrote:

On Sun, Dec 7, 2008 at 1:46 PM, Dave DeLong <[EMAIL PROTECTED]> wrote:
Hi everyone,

I was asked yesterday if there's a struct in Cocoa that has 3 float members.
The person asking me was looking for a struct that could contain a 3
dimensional point (so like a CG- or NSPoint, but with a z member).

My quick searches didn't reveal anything, but I was wondering if any of you
knew of one.

Well, it's part of CoreGraphics, not Cocoa, but there's CGDeviceColor
which has three float members.

There's also CIVector (though that technically has 4 floats), and it's not a structure but an object, which removes the need to wrap it in an NSValue to keep it a Foundation collection object...

Glenn Andreas                      [EMAIL PROTECTED]
 <http://www.gandreas.com/> wicked fun!
quadrium | prime : build, mutate, evolve, animate : the next generation of fractal art



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to