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