Sha256: d32f9783b52f3a466bd6c24162a388b9ccfd1eb5b058fac8c6f7cb348abac678

Contents?: true

Size: 362 Bytes

Versions: 5

Compression:

Stored size: 362 Bytes

Contents

# fjenett, 2010-03-11:
# Left this in although it's not needed as an example for 
# how to extend classes.

class Shape3D

	attr_accessor :x, :y, :z
	attr_accessor :w, :h, :d
	
	def initialize (*args)
		@x, @y, @z = 0.0, 0.0, 0.0
		@w, @h, @d = 0.0, 0.0, 0.0
	end
	
	def rotate_x ( theta )
	end
	
	def rotate_y ( theta )
	end
	
	def rotate_z ( theta )
	end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-processing-2.4.3 samples/processing_app/basics/form/icosahedra/shape_3D.rb
ruby-processing-2.4.2 samples/processing_app/basics/form/icosahedra/shape_3D.rb
ruby-processing-2.4.1 samples/processing_app/basics/form/icosahedra/shape_3D.rb
ruby-processing-1.0.11 samples/processing_app/3D/form/icosahedra/shape_3D.rb
ruby-processing-1.0.10.1 samples/processing_app/3D/form/icosahedra/shape_3D.rb