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