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
23298886
Commit
23298886
authored
Sep 18, 2013
by
tomasz.wlostowski@cern.ch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
geometry: killed compiler warnings
parent
d8480e46
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
14 deletions
+6
-14
shape_line_chain.cpp
common/geometry/shape_line_chain.cpp
+1
-1
seg.h
include/geometry/seg.h
+1
-12
shape.h
include/geometry/shape.h
+4
-1
No files found.
common/geometry/shape_line_chain.cpp
View file @
23298886
...
...
@@ -439,7 +439,7 @@ SHAPE_LINE_CHAIN& SHAPE_LINE_CHAIN::Simplify()
const
VECTOR2I
SHAPE_LINE_CHAIN
::
NearestPoint
(
const
VECTOR2I
&
aP
)
const
{
int
min_d
=
INT_MAX
;
int
nearest
;
int
nearest
=
0
;
for
(
int
i
=
0
;
i
<
SegmentCount
()
;
i
++
)
{
int
d
=
CSegment
(
i
).
Distance
(
aP
);
...
...
include/geometry/seg.h
View file @
23298886
...
...
@@ -307,18 +307,7 @@ inline VECTOR2I SEG::LineProject( const VECTOR2I& aP ) const
{
// fixme: numerical errors for large integers
assert
(
false
);
/*const VECTOR2I d = aB - aA;
ecoord det = d.Dot(d);
ecoord dxdy = (ecoord) d.x * d.y;
ecoord qx =
( (extended_type) aA.x * d.y * d.y + (extended_type) d.x * d.x * x - dxdy *
(aA.y - y) ) / det;
extended_type qy =
( (extended_type) aA.y * d.x * d.x + (extended_type) d.y * d.y * y - dxdy *
(aA.x - x) ) / det;
return VECTOR2<T> ( (T) qx, (T) qy );*/
return
VECTOR2I
(
0
,
0
);
}
...
...
include/geometry/shape.h
View file @
23298886
...
...
@@ -77,7 +77,10 @@ class SHAPE {
* Returns a dynamically allocated copy of the shape
* @retval copy of the shape
*/
virtual
SHAPE
*
Clone
()
const
{
assert
(
false
);
};
virtual
SHAPE
*
Clone
()
const
{
assert
(
false
);
return
NULL
;
};
/**
* Function Collide()
...
...
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