comparison Framework/Toolbox/LinearAlgebra.cpp @ 161:197a5ddaf68c wasm

FiniteProjectiveCamera
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Feb 2018 11:29:26 +0100
parents e9dae7e7bffc
children 8c5b24892ed2
comparison
equal deleted inserted replaced
160:e9dae7e7bffc 161:197a5ddaf68c
113 v[1] = v2; 113 v[1] = v2;
114 v[2] = v3; 114 v[2] = v3;
115 } 115 }
116 116
117 117
118 void AssignVector(Vector& v,
119 double v1,
120 double v2,
121 double v3,
122 double v4)
123 {
124 v.resize(4);
125 v[0] = v1;
126 v[1] = v2;
127 v[2] = v3;
128 v[3] = v4;
129 }
130
131
118 bool IsNear(double x, 132 bool IsNear(double x,
119 double y) 133 double y)
120 { 134 {
121 // As most input is read as single-precision numbers, we take the 135 // As most input is read as single-precision numbers, we take the
122 // epsilon machine for float32 into consideration to compare numbers 136 // epsilon machine for float32 into consideration to compare numbers