Simplify expression in the case of vertical lines

This commit is contained in:
Mael Rouxel-Labbé 2023-03-15 18:39:37 +01:00
parent f7bd5779f1
commit cfbb0d3f68
1 changed files with 3 additions and 2 deletions

View File

@ -737,8 +737,9 @@ compute_degenerate_offset_lines_isec_timeC2 ( Trisegment_2_ptr< Trisegment_2<K,
}
else
{
num = ((l2a*l0b - l0a*l2b) * py - l0a*l2c + l2a*l0c) * sq_w0 ;
den = l0a*l0b*l2b - l0b*l0b*l2a + l2a*sq_w0 - l0a*sq_w0;
// l0b = 0, and all sq_w0 disappear
num = - l0a*l2b*py - l0a*l2c + l2a*l0c ;
den = l2a - l0a;
CGAL_STSKEL_TRAITS_TRACE("Event time (degenerate, vertical) n=" << n2str(num) << " d=" << n2str(den) << " n/d=" << Rational<FT>(num,den) )
}