Sha256: 87b775060ec63d79ecc6fb53f89bc4fef7d478c7af727380cbb1769d432f1458

Contents?: true

Size: 448 Bytes

Versions: 20

Compression:

Stored size: 448 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 './Point'

class Triangle
    attr_accessor :points

    def initialize(p0 = Point::ORIGIN,
		   p1 = Point::ORIGIN,
		   p2 = Point::ORIGIN)
	@points = []
	@points << p0 ? p0 : Point::ORIGIN.dup()
	@points << p1 ? p1 : Point::ORIGIN.dup()
	@points << p2 ? p2 : Point::ORIGIN.dup()
    end
end

Version data entries

20 entries across 20 versions & 2 rubygems

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