/* MACHINE-GENERATED ! */

frame reinforcingpin {
	table
	    { px, py, xoff }
	    { 0.9mm, 0.9mm, 0.2mm }

	__0: vec @(-xoff, -py/2)
	__1: vec .(-px, py)
	pad "C" . __0
}

frame pads {
	table
	    { dy, name }
	    { -1, "A" }
	    { 1, "K" }

	table
	    { px, py, yoff }
	    { 1.5mm, 1.5mm, 1mm }

	__0: vec @(-px/2, yoff*dy)
	__1: vec .(px, dy*py)
	pad "$name" __0 .
}

frame lens {
	table
	    { r, xoff }
	    { 1mm, 0.5mm }

	set w = 0.12mm

	set x = r/sqrt(2)

	__2: vec @(xoff, 0mm)
	__1: vec .(x, -x)
	__0: vec __2(x, x)
	arc __2 __1 . w
	__3: vec __2(r, 0mm)
}

package "VEMD10940F"
unit mm

__0: vec @(0mm, 0mm)
frame pads @
frame reinforcingpin @
frame lens @
measx __0 >> lens.__3 -0.8mm
measx pads.__0 -> pads.__1 -2mm
measy pads.__1 -> pads.__0 -0.5mm
measy reinforcingpin.__0 >> reinforcingpin.__1 1.4mm
measx reinforcingpin.__1 >> reinforcingpin.__0 0.2mm
measx reinforcingpin.__0 >> __0 -0.35mm
measy pads.__0 >> pads.__0 1.5mm
measy pads.__1 >> pads.__1 3.5mm
