|
H3C HEALPix library for PostgreSQL
(version 1.2)
|
mathematique functions More...
Include dependency graph for h3c_math.c:Go to the source code of this file.
Functions | |
| void | h3c_2xyz (double lon, double lat, _h3c_vector vect) |
| compute coord in cartesian More... | |
| void | h3c_2radec (double *in, h3c_coord_t *out) |
| cartesian to polar More... | |
| void | h3c_vect_prod (_h3c_vector v1, _h3c_vector v2, _h3c_vector r) |
| vectorial product More... | |
| double | h3c_scalar_product (_h3c_vector v1, _h3c_vector v2) |
| scalar product More... | |
| void | h3c_normalize (_h3c_vector u) |
| normalize in the united vector More... | |
| double | h3c_vect_length (_h3c_vector v) |
| get the length of a vector More... | |
| void | h3c_unit_vector (double z, double phi, _h3c_vector res) |
| create a unit vector from a z coordinate and an azimuthal angle. More... | |
mathematique functions
Definition in file h3c_math.c.
| void h3c_2radec | ( | double * | in, |
| h3c_coord_t * | out | ||
| ) |
cartesian to polar
| in | cartesian coordinates |
| out | (OUT) polar coordinates |
Definition at line 53 of file h3c_math.c.
| void h3c_2xyz | ( | double | lon, |
| double | lat, | ||
| _h3c_vector | vect | ||
| ) |
compute coord in cartesian
| lon | right ascension (in degree) |
| lat | declination (in degree) |
| vect | (OUT) cartesian coordinates |
Definition at line 39 of file h3c_math.c.
| void h3c_normalize | ( | _h3c_vector | u | ) |
| double h3c_scalar_product | ( | _h3c_vector | v1, |
| _h3c_vector | v2 | ||
| ) |
scalar product
| v1 | vector |
| v2 | vector |
Definition at line 92 of file h3c_math.c.
| void h3c_unit_vector | ( | double | z, |
| double | phi, | ||
| _h3c_vector | res | ||
| ) |
create a unit vector from a z coordinate and an azimuthal angle.
| z | coordinate |
| phi | azimuth |
| res | result vector (OUT) |
Definition at line 125 of file h3c_math.c.
| double h3c_vect_length | ( | _h3c_vector | v | ) |
get the length of a vector
| v | vector |
Definition at line 114 of file h3c_math.c.
| void h3c_vect_prod | ( | _h3c_vector | v1, |
| _h3c_vector | v2, | ||
| _h3c_vector | r | ||
| ) |
vectorial product
| v1 | vector |
| v2 | vector |
| r | (OUT) resulting vector |
Definition at line 79 of file h3c_math.c.