Zephyr Scientific Library (zscilib)
|
API header file for optics in zscilib. More...
#include <zsl/zsl.h>
Go to the source code of this file.
Functions | |
int | zsl_phy_opt_refrac_index (zsl_real_t v, zsl_real_t *n) |
Calculates index of refraction of a medium based on the velocity of light in the medium. More... | |
int | zsl_phy_opt_snell (zsl_real_t n1, zsl_real_t n2, zsl_real_t o1, zsl_real_t *o2) |
Calculates the angle of refraction of a light beam changing the medium of propagation based on the incident angle and the index of refraction of both mediums. More... | |
int | zsl_phy_opt_focus (zsl_real_t sr, zsl_real_t si, zsl_real_t *f) |
Calculates the distance of the focus of a curved mirror based on the position of the real (sr) and imaginary (si) images. More... | |
int | zsl_phy_opt_critic_angle (zsl_real_t n1, zsl_real_t n2, zsl_real_t *oc) |
Calculates the critical angle of incision from which the refraction effect does not occur. More... | |
int | zsl_phy_opt_power (zsl_real_t f, zsl_real_t *p) |
Calculates the power of a lens based on its focal length. More... | |
int | zsl_phy_opt_magn (zsl_real_t y1, zsl_real_t y2, zsl_real_t *m) |
Calculates the magnification of a lens based on the real length of an object and its apparent length through the lens. More... | |
int | zsl_phy_opt_dif (uint8_t n, zsl_real_t lambda, zsl_real_t o, zsl_real_t *d) |
Calculates the distance between two objects when a light beam of wavelength comparable to the distance passes through them and difracts producing spectral lines. More... | |
API header file for optics in zscilib.
This file contains the zscilib optics APIs
Definition in file optics.h.