Aspect ratio of the screen, width / height

Property definitions

gamnit $ GamnitDisplay :: aspect_ratio
	# Aspect ratio of the screen, `width / height`
	fun aspect_ratio: Float do return width.to_f / height.to_f
lib/gamnit/display.nit:37,2--38,59

gamnit :: stereoscopic_view $ GamnitDisplay :: aspect_ratio
	# With stereoscopic view, the aspect ratio (in each eye) is half of the screen
	redef fun aspect_ratio do return super / 2.0
lib/gamnit/depth/stereoscopic_view.nit:59,2--60,45

gamnit :: gamnit_linux $ GamnitDisplay :: aspect_ratio
	redef var aspect_ratio = super is lazy
lib/gamnit/gamnit_linux.nit:60,2--39