コード例 #1
0
ファイル: vgpdf.go プロジェクト: sksullivan/plot
// unit returns a pdf.Unit, converted from a vg.Length.
func unit(l vg.Length) pdf.Unit {
	return pdf.Unit(l.Points()) * pdf.Pt
}