Re: dynamically allocating arrays of type double
Re: dynamically allocating arrays of type double
- Subject: Re: dynamically allocating arrays of type double
- From: Daniel DeCovnick <email@hidden>
- Date: Fri, 15 Apr 2005 05:56:38 -0400
On Apr 15, 2005, at 5:29 AM, Aaron Boothello wrote:
Im writing an openGL program and i need to be able to handle
transformation matrices, best represented by arrays of type double.
The matrices vary in size depending on the situation, so i was wonder
... how do i go about declaring and creating these dynamic arrays in
objective-C ?
I THINK (heavy emphasis on think) that as of C99 you can simply use
double mat[c][r]; which is converted at parse time to double
mat[(c-1)+1][(r-1)+1]; which the compiler SHOULD work wih. I say this
because I've only done it with single-dimension ints, not dual
dimension doubles.
-Dan
Daniel DeCovnick
danhd123 at mac dot com
Softyards Software
http://www.softyards.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden