kicad-doc icon indicating copy to clipboard operation
kicad-doc copied to clipboard

module.GetCenter() doesn't return the center of the footprint

Open anderwm opened this issue 6 years ago • 0 comments

Maybe this is intended, but if so, it is an unfortunate name. GetCenter() seems to return the coordinates of what is at 0,0 in the footprint editor. As far as I know that is what GetPosition() returns as well. I expected it to return the geometric center of the footprint, which can be had by module.GetFootprintRect().Centre()

anderwm avatar Aug 09 '19 16:08 anderwm