-
January 29th, 2013, 05:40 PM
#1
Convert this line from C++ to C#
Hi!
#define ROTATE(a,i,j,k,l) g=a[i][j]; h=a[k][l]; a[i][j]=g-s*(h+g*tau); a[k][l]=h+s*(g-h*tau);
I have this line in C++; I have no idea how to represent it in C#. Is taht some kind of inline function? How that define work? I usually use #define to define some constant to use with if... this code... else... this code, but here it seems like performing some operations. Also variable "tau" seems to come out of nowhere, or that is some C++ constant?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|