Re: 3-float struct?
Re: 3-float struct?
- Subject: Re: 3-float struct?
- From: glenn andreas <email@hidden>
- Date: Sun, 07 Dec 2008 16:55:52 -0600
On Dec 7, 2008, at 3:35 PM, Michael Ash wrote:
On Sun, Dec 7, 2008 at 1:46 PM, Dave DeLong <email@hidden> 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@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | prime : build, mutate, evolve, animate : the next
generation of fractal art
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden