29 const double defaultProportion = 0.25;
33 const int padMinSizeIU = std::min( size.
x, size.
y );
34 const double defaultRadiusIU = std::min( minimumSizeIU, padMinSizeIU * defaultProportion );
37 return defaultRadiusIU / padMinSizeIU;
constexpr EDA_IU_SCALE pcbIUScale
PAD_SHAPE GetShape(PCB_LAYER_ID aLayer) const
const VECTOR2I & GetSize(PCB_LAYER_ID aLayer) const
PCB_LAYER_ID
A quick note on layer IDs:
bool PadHasMeaningfulRoundingRadius(const PAD &aPad, PCB_LAYER_ID aLayer)
Returns true if the pad's rounding ratio is valid (i.e.
double GetDefaultIpcRoundingRatio(const PAD &aPad, PCB_LAYER_ID aLayer)
Get a sensible default for a rounded rectangle pad's rounding ratio.
PAD_SHAPE
The set of pad shapes, used with PAD::{Set,Get}Shape()
constexpr int mmToIU(double mm) const