From fdf1823336cfd078f5305b9343b8f5c633caed7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Thu, 23 Feb 2023 14:48:45 +0100 Subject: [PATCH] Fix offset point coordinates --- .../include/CGAL/constructions/Polygon_offset_cons_ftC2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Straight_skeleton_2/include/CGAL/constructions/Polygon_offset_cons_ftC2.h b/Straight_skeleton_2/include/CGAL/constructions/Polygon_offset_cons_ftC2.h index 061aff58c09..601c91947bb 100644 --- a/Straight_skeleton_2/include/CGAL/constructions/Polygon_offset_cons_ftC2.h +++ b/Straight_skeleton_2/include/CGAL/constructions/Polygon_offset_cons_ftC2.h @@ -68,8 +68,8 @@ construct_offset_pointC2 ( typename K::FT const& t, { if ( ! CGAL_NTS is_zero(den) ) { - FT numX = t * l1->b() / w1 - t * l0->b() / w0 + l0->b() * l1->c() - l1->b() * l0->c() ; - FT numY = t * l1->a() / w1 - t * l0->a() / w0 + l0->a() * l1->c() - l1->a() * l0->c() ; + FT numX = t * l1->b() / w0 - t * l0->b() / w1 + l0->b() * l1->c() - l1->b() * l0->c() ; + FT numY = t * l1->a() / w0 - t * l0->a() / w1 + l0->a() * l1->c() - l1->a() * l0->c() ; x = -numX / den ; y = numY / den ;