Skip to content

Commit

Permalink
fix #10645
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Mar 14, 2024
1 parent c8883cf commit 926ab94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/netbuild/NBEdge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2258,7 +2258,7 @@ NBEdge::computeAngle() {

const double angleLookahead = MIN2(shape.length2D() / 2, ANGLE_LOOKAHEAD);
const Position referencePosStart = shape.positionAtOffset2D(angleLookahead);
const Position referencePosEnd = shape.positionAtOffset2D(shape.length() - angleLookahead);
const Position referencePosEnd = shape.positionAtOffset2D(shape.length2D() - angleLookahead);

myStartAngle = GeomHelper::legacyDegree(fromCenter.angleTo2D(referencePosStart), true);
const double myStartAngle2 = GeomHelper::legacyDegree(myFrom->getPosition().angleTo2D(referencePosStart), true);
Expand Down Expand Up @@ -2335,7 +2335,7 @@ NBEdge::getShapeStartAngle() const {
double
NBEdge::getShapeEndAngle() const {
const double angleLookahead = MIN2(myGeom.length2D() / 2, ANGLE_LOOKAHEAD);
const Position referencePosEnd = myGeom.positionAtOffset2D(myGeom.length() - angleLookahead);
const Position referencePosEnd = myGeom.positionAtOffset2D(myGeom.length2D() - angleLookahead);
return GeomHelper::legacyDegree(referencePosEnd.angleTo2D(myGeom.back()), true);
}

Expand Down

0 comments on commit 926ab94

Please sign in to comment.