Functions

sc_utility.h File Reference

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:
xgray code.
Returns:
binary.
unsigned short BinaryToGray ( unsigned short  x )

Converts binary to gray code.

Parameters:
xbinary.
Returns:
gray code.
ml_matrix unique_numbers_in_list ( const ml_matrix &  u )

Unique numbers in a list.

Parameters:
urow matrix
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:
vnx3 matrix of vectors
fmxp matrix of faces holding indexes to v
nreturn normals 3xm
freturn 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:
v3xn matrix of vectors
nreturn normals 3x1
rreturn position vector 3x1
Returns:
area
int get_naif_code ( const char *  s )

Get NAIF code.

The input is assumed to be lower case

Parameters:
sstring
Returns:
naif code