Miscellaneous functions.
More...
Functions |
unsigned short | GrayToBinary (unsigned short x) |
| Miscellaneous functions.
|
unsigned short | BinaryToGray (unsigned short x) |
| Converts binary to gray code.
|
ml_matrix | unique_numbers_in_list (const ml_matrix &u) |
| Unique numbers in a list.
|
ml_matrix | polygon_props (const ml_matrix &v, ml_matrix f, ml_matrix &n, ml_matrix &r) |
| Polygon properties for a set of polygons.
|
double | polygon (const ml_matrix &v, ml_matrix &n, ml_matrix &r) |
| Polygon properties for a single polygon.
|
int | get_naif_code (const char *s) |
| Get NAIF code.
|
Detailed Description
Function Documentation
unsigned short GrayToBinary |
( |
unsigned short |
x ) |
|
Converts gray code to binary
Miscellaneous functions.
- Parameters:
-
- Returns:
- binary.
unsigned short BinaryToGray |
( |
unsigned short |
x ) |
|
Converts binary to gray code.
- Parameters:
-
- Returns:
- gray code.
ml_matrix unique_numbers_in_list |
( |
const ml_matrix & |
u ) |
|
Unique numbers in a list.
- Parameters:
-
- Returns:
- row matrix containing unique numbers.
ml_matrix polygon_props |
( |
const ml_matrix & |
v, |
|
|
ml_matrix |
f, |
|
|
ml_matrix & |
n, |
|
|
ml_matrix & |
r |
|
) |
| |
Polygon properties for a set of polygons.
- Parameters:
-
v | nx3 matrix of vectors |
f | mxp matrix of faces holding indexes to v |
n | return normals 3xm |
f | return position vectors 3xm |
- Returns:
- area 1xm
double polygon |
( |
const ml_matrix & |
v, |
|
|
ml_matrix & |
n, |
|
|
ml_matrix & |
r |
|
) |
| |
Polygon properties for a single polygon.
- Parameters:
-
v | 3xn matrix of vectors |
n | return normals 3x1 |
r | return position vector 3x1 |
- Returns:
- area
int get_naif_code |
( |
const char * |
s ) |
|
Get NAIF code.
The input is assumed to be lower case
- Parameters:
-
- Returns:
- naif code