MCPcopy
hub / github.com/g3n/engine / winSize

Method winSize

camera/orbit_control.go:324–331  ·  view source on GitHub ↗

winSize returns the window height or width based on the camera reference axis.

()

Source from the content-addressed store, hash-verified

322
323// winSize returns the window height or width based on the camera reference axis.
324func (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}

Callers 2

PanMethod · 0.95
onCursorMethod · 0.95

Calls 3

GetFunction · 0.92
AxisMethod · 0.80
GetSizeMethod · 0.65

Tested by

no test coverage detected