Sha256: 60f7f14186bb10a28341e5d070eef7c9b5e2dc82f87e018f1022d4d1253152e9

Contents?: true

Size: 511 Bytes

Versions: 20

Compression:

Stored size: 511 Bytes

Contents

#
# Copyright (c) 2001 by Jim Menard <jimm@io.com>
#
# Released under the same license as Ruby. See
# http://www.ruby-lang.org/en/LICENSE.txt.
#

require './Params'

class Camera

    attr_accessor :position, :rotation, :zoom

    def initialize
	@position = Point.new($PARAMS['camera_x'],
			      $PARAMS['camera_y'],
			      $PARAMS['camera_z'])
	@rotation = Point.new($PARAMS['camera_rot_x'],
			      $PARAMS['camera_rot_y'],
			      $PARAMS['camera_rot_z'])
	@zoom = $PARAMS['camera_zoom']
    end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
rock-qtbindings-4.8.6.5 examples/ruboids/ruboids/Camera.rb
qtbindings-4.8.6.5 examples/ruboids/ruboids/Camera.rb
qtbindings-4.8.6.4 examples/ruboids/ruboids/Camera.rb
qtbindings-4.8.6.2 examples/ruboids/ruboids/Camera.rb
qtbindings-4.8.6.1 examples/ruboids/ruboids/Camera.rb
qtbindings-4.8.6.0 examples/ruboids/ruboids/Camera.rb
qtbindings-4.8.6.0-x86-mingw32 examples/ruboids/ruboids/Camera.rb
qtbindings-4.8.5.2 examples/ruboids/ruboids/Camera.rb
qtbindings-4.8.5.2-x86-mingw32 examples/ruboids/ruboids/Camera.rb
qtbindings-4.8.5.1 examples/ruboids/ruboids/Camera.rb
qtbindings-4.8.5.0 examples/ruboids/ruboids/Camera.rb
qtbindings-4.8.3.0-x86-mingw32 examples/ruboids/ruboids/Camera.rb
qtbindings-4.8.3.0 examples/ruboids/ruboids/Camera.rb
qtbindings-4.6.3.4-x86-mingw32 examples/ruboids/ruboids/Camera.rb
qtbindings-4.6.3.4 examples/ruboids/ruboids/Camera.rb
qtbindings-4.6.3.3 examples/ruboids/ruboids/Camera.rb
qtbindings-4.6.3.2-x86-mingw32 examples/ruboids/ruboids/Camera.rb
qtbindings-4.6.3.2 examples/ruboids/ruboids/Camera.rb
qtbindings-4.6.3.1 examples/ruboids/ruboids/Camera.rb
qtbindings-4.6.3.1-x86-mingw32 examples/ruboids/ruboids/Camera.rb