HologramDepthmap Library
|
Classes | |
struct | ivec2 |
structure for 2-dimensional integer vector and its arithmetic. More... | |
struct | ivec3 |
structure for 3-dimensional integer vector and its arithmetic. More... | |
struct | ivec4 |
structure for 4-dimensional integer vector and its arithmetic. More... | |
struct | vec2 |
structure for 2-dimensional real type vector and its arithmetic. More... | |
struct | vec3 |
structure for 3-dimensional real type vector and its arithmetic. More... | |
struct | vec4 |
structure for 4-dimensional real type vector and its arithmetic. More... | |
Functions | |
void | set_u_epsilon (real a) |
void | reset_u_epsilon () |
void | set_zero_epsilon (real a) |
void | reset_zero_epsilon () |
int | apx_equal (real x, real y) |
int | apx_equal (real x, real y, real eps) |
ivec2 | operator+ (const ivec2 &a, const ivec2 &b) |
ivec2 | operator+ (int a, const ivec2 &b) |
ivec2 | operator+ (const ivec2 &a, int b) |
ivec2 | operator- (const ivec2 &a, const ivec2 &b) |
ivec2 | operator- (int a, const ivec2 &b) |
ivec2 | operator- (const ivec2 &a, int b) |
ivec2 | operator* (const ivec2 &a, const ivec2 &b) |
ivec2 | operator* (int a, const ivec2 &b) |
ivec2 | operator* (const ivec2 &a, int b) |
ivec2 | operator+= (ivec2 &a, const ivec2 &b) |
ivec2 | operator+= (ivec2 &a, int b) |
ivec2 | operator-= (ivec2 &a, const ivec2 &b) |
ivec2 | operator-= (ivec2 &a, int b) |
ivec2 | operator*= (ivec2 &a, const ivec2 &b) |
ivec2 | operator*= (ivec2 &a, int b) |
int | operator== (const ivec2 &a, const ivec2 &b) |
int | operator== (int a, const ivec2 &b) |
int | operator== (const ivec2 &a, int b) |
int | operator< (const ivec2 &a, const ivec2 &b) |
int | operator< (int a, const ivec2 &b) |
int | operator< (const ivec2 &a, int b) |
int | operator<= (const ivec2 &a, const ivec2 &b) |
int | operator<= (int a, const ivec2 &b) |
int | operator<= (const ivec2 &a, int b) |
int | operator> (const ivec2 &a, const ivec2 &b) |
int | operator> (int a, const ivec2 &b) |
int | operator> (const ivec2 &a, int b) |
int | operator>= (const ivec2 &a, const ivec2 &b) |
int | operator>= (int a, const ivec2 &b) |
int | operator>= (const ivec2 &a, int b) |
int | operator!= (const ivec2 &a, const ivec2 &b) |
ivec2 | operator- (const ivec2 &a) |
ivec3 | operator+ (const ivec3 &a, const ivec3 &b) |
ivec3 | operator+ (int a, const ivec3 &b) |
ivec3 | operator+ (const ivec3 &a, int b) |
ivec3 | operator- (const ivec3 &a, const ivec3 &b) |
ivec3 | operator- (int a, const ivec3 &b) |
ivec3 | operator- (const ivec3 &a, int b) |
ivec3 | operator* (const ivec3 &a, const ivec3 &b) |
ivec3 | operator* (int a, const ivec3 &b) |
ivec3 | operator* (const ivec3 &a, int b) |
ivec3 | operator+= (ivec3 &a, const ivec3 &b) |
ivec3 | operator+= (ivec3 &a, int b) |
ivec3 | operator-= (ivec3 &a, const ivec3 &b) |
ivec3 | operator-= (ivec3 &a, int b) |
ivec3 | operator*= (ivec3 &a, const ivec3 &b) |
ivec3 | operator*= (ivec3 &a, int b) |
int | operator== (const ivec3 &a, const ivec3 &b) |
int | operator== (int a, const ivec3 &b) |
int | operator== (const ivec3 &a, int b) |
int | operator< (const ivec3 &a, const ivec3 &b) |
int | operator< (int a, const ivec3 &b) |
int | operator< (const ivec3 &a, int b) |
int | operator<= (const ivec3 &a, const ivec3 &b) |
int | operator<= (int a, const ivec3 &b) |
int | operator<= (const ivec3 &a, int b) |
int | operator> (const ivec3 &a, const ivec3 &b) |
int | operator> (int a, const ivec3 &b) |
int | operator> (const ivec3 &a, int b) |
int | operator>= (const ivec3 &a, const ivec3 &b) |
int | operator>= (int a, const ivec3 &b) |
int | operator>= (const ivec3 &a, int b) |
int | operator!= (const ivec3 &a, const ivec3 &b) |
ivec3 | operator- (const ivec3 &a) |
ivec4 | operator+ (const ivec4 &a, const ivec4 &b) |
ivec4 | operator+ (int a, const ivec4 &b) |
ivec4 | operator+ (const ivec4 &a, int b) |
ivec4 | operator- (const ivec4 &a, const ivec4 &b) |
ivec4 | operator- (int a, const ivec4 &b) |
ivec4 | operator- (const ivec4 &a, int b) |
ivec4 | operator* (const ivec4 &a, const ivec4 &b) |
ivec4 | operator* (int a, const ivec4 &b) |
ivec4 | operator* (const ivec4 &a, int b) |
ivec4 | operator+= (ivec4 &a, const ivec4 &b) |
ivec4 | operator+= (ivec4 &a, int b) |
ivec4 | operator-= (ivec4 &a, const ivec4 &b) |
ivec4 | operator-= (ivec4 &a, int b) |
ivec4 | operator*= (ivec4 &a, const ivec4 &b) |
ivec4 | operator*= (ivec4 &a, int b) |
int | operator== (const ivec4 &a, const ivec4 &b) |
int | operator== (int a, const ivec4 &b) |
int | operator== (const ivec4 &a, int b) |
int | operator< (const ivec4 &a, const ivec4 &b) |
int | operator< (int a, const ivec4 &b) |
int | operator< (const ivec4 &a, int b) |
int | operator<= (const ivec4 &a, const ivec4 &b) |
int | operator<= (int a, const ivec4 &b) |
int | operator<= (const ivec4 &a, int b) |
int | operator> (const ivec4 &a, const ivec4 &b) |
int | operator> (int a, const ivec4 &b) |
int | operator> (const ivec4 &a, int b) |
int | operator>= (const ivec4 &a, const ivec4 &b) |
int | operator!= (const ivec4 &a, const ivec4 &b) |
int | operator>= (int a, const ivec4 &b) |
int | operator>= (const ivec4 &a, int b) |
ivec4 | operator- (const ivec4 &a) |
void | store (FILE *fp, const vec2 &v) |
int | scan (FILE *fp, const vec2 &v) |
int | apx_equal (const vec2 &a, const vec2 &b) |
int | apx_equal (const vec2 &a, const vec2 &b, real eps) |
void | store (FILE *fp, const vec3 &v) |
int | scan (FILE *fp, const vec3 &v) |
int | apx_equal (const vec3 &a, const vec3 &b) |
int | apx_equal (const vec3 &a, const vec3 &b, real eps) |
void | store (FILE *fp, const vec4 &v) |
int | scan (FILE *fp, const vec4 &v) |
int | apx_equal (const vec4 &a, const vec4 &b) |
int | apx_equal (const vec4 &a, const vec4 &b, real eps) |
vec3 | cross (const vec3 &a, const vec3 &b) |
vec2 | operator+ (const vec2 &a, const vec2 &b) |
vec2 | operator+ (real a, const vec2 &b) |
vec2 | operator+ (const vec2 &a, real b) |
vec2 | operator- (const vec2 &a, const vec2 &b) |
vec2 | operator- (real a, const vec2 &b) |
vec2 | operator- (const vec2 &a, real b) |
vec2 | operator* (const vec2 &a, const vec2 &b) |
vec2 | operator* (real a, const vec2 &b) |
vec2 | operator* (const vec2 &a, real b) |
vec2 | operator/ (const vec2 &a, const vec2 &b) |
vec2 | operator/ (real a, const vec2 &b) |
vec2 | operator/ (const vec2 &a, real b) |
vec2 | operator+= (vec2 &a, const vec2 &b) |
vec2 | operator+= (vec2 &a, real b) |
vec2 | operator-= (vec2 &a, const vec2 &b) |
vec2 | operator-= (vec2 &a, real b) |
vec2 | operator*= (vec2 &a, const vec2 &b) |
vec2 | operator*= (vec2 &a, real b) |
vec2 | operator/= (vec2 &a, const vec2 &b) |
vec2 | operator/= (vec2 &a, real b) |
int | operator== (const vec2 &a, const vec2 &b) |
int | operator== (real a, const vec2 &b) |
int | operator== (const vec2 &a, real b) |
int | operator< (const vec2 &a, const vec2 &b) |
int | operator< (real a, const vec2 &b) |
int | operator< (const vec2 &a, real b) |
int | operator<= (const vec2 &a, const vec2 &b) |
int | operator<= (real a, const vec2 &b) |
int | operator<= (const vec2 &a, real b) |
int | operator> (const vec2 &a, const vec2 &b) |
int | operator> (real a, const vec2 &b) |
int | operator> (const vec2 &a, real b) |
int | operator>= (const vec2 &a, const vec2 &b) |
int | operator>= (real a, const vec2 &b) |
int | operator>= (const vec2 &a, real b) |
vec2 | operator- (const vec2 &a) |
real | sum (const vec2 &a) |
real | inner (const vec2 &a, const vec2 &b) |
real | norm (const vec2 &a) |
real | squaredNorm (const vec2 &a) |
vec2 | unit (const vec2 &a) |
real | angle (const vec2 &a, const vec2 &b) |
vec2 | proj (const vec2 &axis, const vec2 &a) |
vec2 | absolute (const vec2 &val) |
vec3 | operator+ (const vec3 &a, const vec3 &b) |
vec3 | operator+ (real a, const vec3 &b) |
vec3 | operator+ (const vec3 &a, real b) |
vec3 | operator- (const vec3 &a, const vec3 &b) |
vec3 | operator- (real a, const vec3 &b) |
vec3 | operator- (const vec3 &a, real b) |
vec3 | operator* (const vec3 &a, const vec3 &b) |
vec3 | operator* (real a, const vec3 &b) |
vec3 | operator* (const vec3 &a, real b) |
vec3 | operator/ (const vec3 &a, const vec3 &b) |
vec3 | operator/ (real a, const vec3 &b) |
vec3 | operator/ (const vec3 &a, real b) |
vec3 | operator+= (vec3 &a, const vec3 &b) |
vec3 | operator+= (vec3 &a, real b) |
vec3 | operator-= (vec3 &a, const vec3 &b) |
vec3 | operator-= (vec3 &a, real b) |
vec3 | operator*= (vec3 &a, const vec3 &b) |
vec3 | operator*= (vec3 &a, real b) |
vec3 | operator/= (vec3 &a, const vec3 &b) |
vec3 | operator/= (vec3 &a, real b) |
int | operator== (const vec3 &a, const vec3 &b) |
int | operator== (real a, const vec3 &b) |
int | operator== (const vec3 &a, real b) |
int | operator< (const vec3 &a, const vec3 &b) |
int | operator< (real a, const vec3 &b) |
int | operator< (const vec3 &a, real b) |
int | operator<= (const vec3 &a, const vec3 &b) |
int | operator<= (real a, const vec3 &b) |
int | operator<= (const vec3 &a, real b) |
int | operator> (const vec3 &a, const vec3 &b) |
int | operator> (real a, const vec3 &b) |
int | operator> (const vec3 &a, real b) |
int | operator>= (const vec3 &a, const vec3 &b) |
int | operator>= (real a, const vec3 &b) |
int | operator>= (const vec3 &a, real b) |
vec3 | operator- (const vec3 &a) |
vec3 | absolute (const vec3 &val) |
real | sum (const vec3 &a) |
real | inner (const vec3 &a, const vec3 &b) |
real | squaredNorm (const vec3 &a) |
real | norm (const vec3 &a) |
vec3 | unit (const vec3 &a) |
real | angle (const vec3 &a, const vec3 &b) |
vec3 | proj (const vec3 &axis, const vec3 &a) |
vec4 | operator+ (const vec4 &a, const vec4 &b) |
vec4 | operator+ (real a, const vec4 &b) |
vec4 | operator+ (const vec4 &a, real b) |
vec4 | operator- (const vec4 &a, const vec4 &b) |
vec4 | operator- (real a, const vec4 &b) |
vec4 | operator- (const vec4 &a, real b) |
vec4 | operator* (const vec4 &a, const vec4 &b) |
vec4 | operator* (real a, const vec4 &b) |
vec4 | operator* (const vec4 &a, real b) |
vec4 | operator/ (const vec4 &a, const vec4 &b) |
vec4 | operator/ (real a, const vec4 &b) |
vec4 | operator/ (const vec4 &a, real b) |
vec4 | operator+= (vec4 &a, const vec4 &b) |
vec4 | operator+= (vec4 &a, real b) |
vec4 | operator-= (vec4 &a, const vec4 &b) |
vec4 | operator-= (vec4 &a, real b) |
vec4 | operator*= (vec4 &a, const vec4 &b) |
vec4 | operator*= (vec4 &a, real b) |
vec4 | operator/= (vec4 &a, const vec4 &b) |
vec4 | operator/= (vec4 &a, real b) |
int | operator== (const vec4 &a, const vec4 &b) |
int | operator== (real a, const vec4 &b) |
int | operator== (const vec4 &a, real b) |
int | operator< (const vec4 &a, const vec4 &b) |
int | operator< (real a, const vec4 &b) |
int | operator< (const vec4 &a, real b) |
int | operator<= (const vec4 &a, const vec4 &b) |
int | operator<= (real a, const vec4 &b) |
int | operator<= (const vec4 &a, real b) |
int | operator> (const vec4 &a, const vec4 &b) |
int | operator> (real a, const vec4 &b) |
int | operator> (const vec4 &a, real b) |
int | operator>= (const vec4 &a, const vec4 &b) |
int | operator>= (real a, const vec4 &b) |
int | operator>= (const vec4 &a, real b) |
vec4 | operator- (const vec4 &a) |
vec4 | absolute (const vec4 &val) |
real | sum (const vec4 &a) |
real | inner (const vec4 &a, const vec4 &b) |
real | squaredNorm (const vec4 &a) |
real | norm (const vec4 &a) |
vec4 | unit (const vec4 &a) |
real | angle (const vec4 &a, const vec4 &b) |
vec4 | proj (const vec4 &axis, const vec4 &a) |
Variables | |
real | epsilon = 1.0e-8 |
real | user_epsilon = 1.0e-8 |
real | intersection_epsilon = 1e-6 |
real | sqrt_epsilon = 1.490116119385000000e-8 |
real | unset_value = -1.23432101234321e+308 |
real | zero_tolerance = 1.0e-12 |
real | angle_tolerance = M_PI/180.0 |
real | zero_epsilon = 1.0e-12 |
real | save_zero_epsilon = 1.0e-12 |
Definition at line 45 of file epsilon.cpp.
Definition at line 61 of file epsilon.cpp.
void graphics::reset_u_epsilon | ( | ) |
Definition at line 27 of file epsilon.cpp.
void graphics::reset_zero_epsilon | ( | ) |
Definition at line 37 of file epsilon.cpp.
void graphics::set_u_epsilon | ( | real | a | ) |
Definition at line 22 of file epsilon.cpp.
void graphics::set_zero_epsilon | ( | real | a | ) |
Definition at line 31 of file epsilon.cpp.
Definition at line 14 of file epsilon.cpp.
real graphics::epsilon = 1.0e-8 |
Definition at line 7 of file epsilon.cpp.
real graphics::intersection_epsilon = 1e-6 |
Definition at line 9 of file epsilon.cpp.
real graphics::save_zero_epsilon = 1.0e-12 |
Definition at line 15 of file epsilon.cpp.
real graphics::sqrt_epsilon = 1.490116119385000000e-8 |
Definition at line 10 of file epsilon.cpp.
real graphics::unset_value = -1.23432101234321e+308 |
Definition at line 11 of file epsilon.cpp.
real graphics::user_epsilon = 1.0e-8 |
Definition at line 8 of file epsilon.cpp.
real graphics::zero_epsilon = 1.0e-12 |
Definition at line 13 of file epsilon.cpp.
real graphics::zero_tolerance = 1.0e-12 |
Definition at line 12 of file epsilon.cpp.