[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Rect binops



Hey,

we had a discussion o this recently here and decided to not do this:

http://tinyurl.com/serte

please argument against this decision :-)

regards
Till

On 30 Oct 2006, at 01:35, tom tlalim wrote:

it's nice that Rect:- and Rect+ were added recently.
to complete this can someone commit these too?

+Rect{
	/ {|that|
		var thatRect;
		thatRect = that.asRect;
	
		^Rect(
			this.left / thatRect.left,
			this.top / thatRect.top,
			this.width / thatRect.width,
			this.height / thatRect.height
		)
	}

	* {|that|
		var thatRect;
		thatRect = that.asRect;
	
		^Rect(
			this.left * thatRect.left,
			this.top * thatRect.top,
			this.width * thatRect.width,
			this.height * thatRect.height
		)
	}

}

tom tlalim

....................
www.tomtlalim.tk
radio.sampleandhold.org
www.myspace.com/intowhite
www.club-mtk.tk
www.tangiercluj.tk
....................

_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev