Re: Visualization strategy/choosing a framework
Re: Visualization strategy/choosing a framework
- Subject: Re: Visualization strategy/choosing a framework
- From: "E. Wing" <email@hidden>
- Date: Tue, 6 Jan 2009 00:45:49 -0800
> Off to do some refactoring of my Swarm class; at the risk of spawning a
> tangent, am I just completely missing a Cocoa data structure that's suited
> to matrices of scalar values? I had a working implementation using nested
> NSMutableArrays, but the code wound up looking disgusting (my fault, not the
> API's ;-), so I rewrote it with good ol' C arrays, malloc, and free. It has
> no leaks now, and is really, really fast, but I feel like I shouldn't have
> to reinvent the wheel in order to do matrix operations.
Core Animation provides CATransform3D and a few functions for
manipulating the 4x4 matrix (see CATransform3D.h). However, it is
fairly limited. As you fear, most OpenGL work ends up reinventing this
(usually in C++) . I recommend you find an open source one to your
liking and use it.
-Eric
_______________________________________________
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