mirror of https://github.com/CGAL/cgal
fix incorrect moment matrix init for Segment_3
This commit is contained in:
parent
80fca76641
commit
bdcae24d72
|
|
@ -548,8 +548,8 @@ assemble_covariance_matrix_3(InputIterator first,
|
||||||
|
|
||||||
// assemble 2nd order moment about the origin.
|
// assemble 2nd order moment about the origin.
|
||||||
Matrix moment;
|
Matrix moment;
|
||||||
moment << 1.0, 0.5, 0.0,
|
moment << 1.0/3.0, 0.5/3.0, 0.0,
|
||||||
0.5, 1.0, 0.0,
|
0.5/3.0, 1.0/3.0, 0.0,
|
||||||
0.0, 0.0, 0.0;
|
0.0, 0.0, 0.0;
|
||||||
|
|
||||||
for(InputIterator it = first;
|
for(InputIterator it = first;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue