kicad-doc
kicad-doc copied to clipboard
module.GetCenter() doesn't return the center of the footprint
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()