MCPcopy Create free account
hub / github.com/cogentcore/core / LocalBBox

Method LocalBBox

svg/circle.go:37–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (g *Circle) LocalBBox() math32.Box2 {
38 bb := math32.Box2{}
39 hlw := 0.5 * g.LocalLineWidth()
40 bb.Min = g.Pos.SubScalar(g.Radius + hlw)
41 bb.Max = g.Pos.AddScalar(g.Radius + hlw)
42 return bb
43}
44
45func (g *Circle) Render(sv *SVG) {
46 vis, pc := g.PushTransform(sv)

Callers

nothing calls this directly

Calls 3

LocalLineWidthMethod · 0.80
SubScalarMethod · 0.45
AddScalarMethod · 0.45

Tested by

no test coverage detected