[Sc-devel] SF.net SVN: supercollider: [6187]
trunk/build/SCClassLibrary/Common/ Geometry/Rect.sc
Till Bovermann
tboverma at techfak.uni-bielefeld.de
Tue Jul 24 13:07:04 PDT 2007
Revision: 6187
http://svn.sourceforge.net/supercollider/?rev=6187&view=rev
Author: tboverma
Date: 2007-07-24 02:48:55 -0700 (Tue, 24 Jul 2007)
Log Message:
-----------
added convenience method Meta_Rect:fromArray
Modified Paths:
--------------
trunk/build/SCClassLibrary/Common/Geometry/Rect.sc
Modified: trunk/build/SCClassLibrary/Common/Geometry/Rect.sc
===================================================================
--- trunk/build/SCClassLibrary/Common/Geometry/Rect.sc 2007-07-21
03:15:32 UTC (rev 6186)
+++ trunk/build/SCClassLibrary/Common/Geometry/Rect.sc 2007-07-24
09:48:55 UTC (rev 6187)
@@ -22,6 +22,9 @@
*fromRect { arg rect;
^this.new(rect.left, rect.top, rect.width, rect.height)
}
+ *fromArray {|array|
+ ^this.new(*array)
+ }
*aboutPoint { arg point, dx, dy;
^this.new(point.x-dx, point.y-dy, 2*dx, 2*dy)
}
This was sent by the SourceForge.net collaborative development
platform, the world's largest Open Source development site.
More information about the Sc-devel
mailing list