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

[sc-dev] Rect binops



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
....................