comparison Framework/Layers/CircleMeasureTracker.cpp @ 158:a053ca7fa5c6 wasm

LinearAlgebra toolbox
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Feb 2018 08:58:31 +0100
parents e2fe9352f240
children fccffbf99ba1
comparison
equal deleted inserted replaced
157:2309e8d86efe 158:a053ca7fa5c6
57 { 57 {
58 double x = (x1_ + x2_) / 2.0; 58 double x = (x1_ + x2_) / 2.0;
59 double y = (y1_ + y2_) / 2.0; 59 double y = (y1_ + y2_) / 2.0;
60 60
61 Vector tmp; 61 Vector tmp;
62 GeometryToolbox::AssignVector(tmp, x2_ - x1_, y2_ - y1_); 62 LinearAlgebra::AssignVector(tmp, x2_ - x1_, y2_ - y1_);
63 double r = boost::numeric::ublas::norm_2(tmp) / 2.0; 63 double r = boost::numeric::ublas::norm_2(tmp) / 2.0;
64 64
65 context.SetSourceColor(color_[0], color_[1], color_[2]); 65 context.SetSourceColor(color_[0], color_[1], color_[2]);
66 66
67 cairo_t* cr = context.GetObject(); 67 cairo_t* cr = context.GetObject();