Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libarea misc. typo fix #2

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Mod/Path/libarea/Arc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void CArc::GetSegments(void(*callbackfunc)(const double *p), double pixels_per_m

double theta = d_angle / (double)segments;
while(theta>1.0){segments*=2;theta = d_angle / (double)segments;}
double tangetial_factor = tan(theta);
double tangential_factor = tan(theta);
double radial_factor = 1 - cos(theta);

double x = radius * cos(start_angle);
Expand All @@ -110,8 +110,8 @@ void CArc::GetSegments(void(*callbackfunc)(const double *p), double pixels_per_m
double tx = -y;
double ty = x;

x += tx * tangetial_factor;
y += ty * tangetial_factor;
x += tx * tangential_factor;
y += ty * tangential_factor;

double rx = - x;
double ry = - y;
Expand Down