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,9 +548,9 @@ assemble_covariance_matrix_3(InputIterator first,
|
|||
|
||||
// assemble 2nd order moment about the origin.
|
||||
Matrix moment;
|
||||
moment << 1.0, 0.5, 0.0,
|
||||
0.5, 1.0, 0.0,
|
||||
0.0, 0.0, 0.0;
|
||||
moment << 1.0/3.0, 0.5/3.0, 0.0,
|
||||
0.5/3.0, 1.0/3.0, 0.0,
|
||||
0.0, 0.0, 0.0;
|
||||
|
||||
for(InputIterator it = first;
|
||||
it != beyond;
|
||||
|
|
|
|||
Loading…
Reference in New Issue