Last change
on this file since 677 was
674,
checked in by srkline, 13 years ago
|
change round() to (long)(x+0.5) since round is not supported, and I really need long anyways.
|
File size:
896 bytes
|
Line | |
---|
1 | /* |
---|
2 | * |
---|
3 | * Created by Steve Kline on Tue Dec 15 2009. |
---|
4 | * Copyright (c) 2009 NCNR. All rights reserved. |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | //#include <Carbon/Carbon.h> |
---|
9 | #include <stdio.h> |
---|
10 | |
---|
11 | // Parameters passed from Igor to the function, in reverse order of the parameter list |
---|
12 | // result is the last parameter, always. |
---|
13 | typedef struct AltiParams { |
---|
14 | DOUBLE grid; // effective c-to-c distance between spheres = 0.62*Rprimary |
---|
15 | DOUBLE Rprimary; //primary sphere radius |
---|
16 | waveHndl rhowavH; // rho at xyz!!! |
---|
17 | waveHndl zwavH; // z coordinate. ALL are expected to be SP waves |
---|
18 | waveHndl ywavH; // y coordinate. |
---|
19 | waveHndl xwavH; // x coordinate. |
---|
20 | DOUBLE qval; // q-value. |
---|
21 | void* tp; //unused void for threadsafe functions |
---|
22 | DOUBLE result; |
---|
23 | }AltiParams, *AltiParamsPtr; |
---|
24 | |
---|
25 | |
---|
26 | float PhiQR(float qval, float rval); |
---|
27 | float XYZDistance(float x1, float x2,float y1, float y2,float z1, float z2); |
---|
28 | int DebyeSpheresX(AltiParamsPtr p); |
---|
Note: See
TracBrowser
for help on using the repository browser.