(targetZoom float32)
| 51 | } |
| 52 | |
| 53 | func (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 | |
| 65 | func (camera *Camera) AddZoom(zoomInAmount float32) { |
| 66 |
no outgoing calls
no test coverage detected