• 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: 3-float struct?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >3-float struct? (From: Dave DeLong <email@hidden>)
 >Re: 3-float struct? (From: "Michael Ash" <email@hidden>)

  • Prev by Date: Re: core data, refreshObject, multiple threads
  • Next by Date: Re: NSPredicateEditor and date comparisons
  • Previous by thread: Re: 3-float struct?
  • Next by thread: Re: 3-float struct?
  • Index(es):
    • Date
    • Thread