winSize returns the window height or width based on the camera reference axis.
()
| 322 | |
| 323 | // winSize returns the window height or width based on the camera reference axis. |
| 324 | func (oc *OrbitControl) winSize() float32 { |
| 325 | |
| 326 | width, size := window.Get().GetSize() |
| 327 | if oc.cam.Axis() == Horizontal { |
| 328 | size = width |
| 329 | } |
| 330 | return float32(size) |
| 331 | } |