Rotation matrix produced by the current rotation of the camera

Property definitions

gamnit $ EulerCamera :: rotation_matrix
	# Rotation matrix produced by the current rotation of the camera
	protected fun rotation_matrix: Matrix
	do
		var view = new Matrix.identity(4)

		# Rotate the camera, first by looking left or right, then up or down
		view.rotate(yaw,   0.0, 1.0, 0.0)
		view.rotate(pitch, 1.0, 0.0, 0.0)
		view.rotate(roll,  0.0, 0.0, 1.0)

		return view
	end
lib/gamnit/cameras.nit:112,2--123,4

gamnit :: cardboard $ EulerCamera :: rotation_matrix
	# Do not use `yaw` and `pitch`, the value will instead originate from the Cardboard API
	redef var rotation_matrix = new Matrix.identity(4)
lib/gamnit/depth/cardboard.nit:26,2--27,51