MCPcopy Create free account
hub / github.com/SolarLune/masterplan / SetZoom

Method SetZoom

camera.go:53–63  ·  view source on GitHub ↗
(targetZoom float32)

Source from the content-addressed store, hash-verified

51}
52
53func (camera *Camera) SetZoom(targetZoom float32) {
54
55 if targetZoom < 0.05 {
56 targetZoom = 0.05
57 } else if targetZoom >= 10 {
58 targetZoom = 10
59 }
60
61 camera.TargetZoom = targetZoom
62
63}
64
65func (camera *Camera) AddZoom(zoomInAmount float32) {
66

Callers 3

AddZoomMethod · 0.95
FocusOnMethod · 0.95
GlobalShortcutsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected