Skip to content

Commit

Permalink
Ellipse done
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Feb 24, 2024
1 parent d4ff6ac commit b762cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librecad/src/lib/engine/rs_ellipse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ RS_Vector RS_Ellipse::dualLineTangentPoint(const RS_Vector& line) const
// u x + v y = 1
// coordinates : dual
// rotate (-a) : rotate(a)
RS_Vector uv = RS_Vector{line}.rotate(data.majorP.angle());
RS_Vector uv = RS_Vector{line}.rotate(-data.majorP.angle());
// slope = -b c/ a s ( a s, - b c)
// x a s - b c y =0 -> s/c = b y / a x
// elliptical angle
Expand Down

0 comments on commit b762cd0

Please sign in to comment.