Sha256: 79ff8775d268b6c56029130de7375dcd1fa2a2bdba666dd5de366ab5e2b1103b

Contents?: true

Size: 469 Bytes

Versions: 11

Compression:

Stored size: 469 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

11 entries across 11 versions & 1 rubygems

Version Path
qtbindings-4.8.6.5-x86-mingw32 examples/ruboids/ruboids/Triangle.rb
qtbindings-4.8.6.5-x64-mingw32 examples/ruboids/ruboids/Triangle.rb
qtbindings-4.8.6.4-x86-mingw32 examples/ruboids/ruboids/Triangle.rb
qtbindings-4.8.6.4-x64-mingw32 examples/ruboids/ruboids/Triangle.rb
qtbindings-4.8.6.3 examples/ruboids/ruboids/Triangle.rb
qtbindings-4.8.6.3-x86-mingw32 examples/ruboids/ruboids/Triangle.rb
qtbindings-4.8.6.3-x64-mingw32 examples/ruboids/ruboids/Triangle.rb
qtbindings-4.8.6.2-x64-mingw32 examples/ruboids/ruboids/Triangle.rb
qtbindings-4.8.6.2-x86-mingw32 examples/ruboids/ruboids/Triangle.rb
qtbindings-4.8.6.1-x64-mingw32 examples/ruboids/ruboids/Triangle.rb
qtbindings-4.8.6.1-x86-mingw32 examples/ruboids/ruboids/Triangle.rb