lib/rays/matrix.rb in rays-0.1.48 vs lib/rays/matrix.rb in rays-0.1.49
- old
+ new
@@ -7,9 +7,25 @@
class Matrix
include Comparable
include Enumerable
+ def transpose()
+ dup.transpose!
+ end
+
+ def translate(*args)
+ dup.translate!(*args)
+ end
+
+ def scale(*args)
+ dup.scale!(*args)
+ end
+
+ def rotate(*args)
+ dup.rotate!(*args)
+ end
+
def each(&block)
to_a.each(&block)
end
alias inspect_org inspect