Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
b5368e36
Commit
b5368e36
authored
Sep 21, 2011
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 3D pad drawing bug. Fixes 855288.
parent
98886a6d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
trigo.cpp
common/trigo.cpp
+4
-2
No files found.
common/trigo.cpp
View file @
b5368e36
...
@@ -346,8 +346,10 @@ void RotatePoint( double* pX, double* pY, int angle )
...
@@ -346,8 +346,10 @@ void RotatePoint( double* pX, double* pY, int angle )
{
{
double
fangle
=
DEG2RAD
(
(
double
)
angle
/
10.0
);
double
fangle
=
DEG2RAD
(
(
double
)
angle
/
10.0
);
*
pX
=
(
*
pY
*
sin
(
fangle
)
)
+
(
*
pX
*
cos
(
fangle
)
);
double
fpx
=
(
*
pY
*
sin
(
fangle
)
)
+
(
*
pX
*
cos
(
fangle
)
);
*
pY
=
(
*
pY
*
cos
(
fangle
)
)
-
(
*
pX
*
sin
(
fangle
)
);
double
fpy
=
(
*
pY
*
cos
(
fangle
)
)
-
(
*
pX
*
sin
(
fangle
)
);
*
pX
=
fpx
;
*
pY
=
fpy
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment