Re: [matrix][cssom-view] DOMRect vs mutability and more

Simon Pieters skriver:
> I don't follow. What's the use case for a movable rectangle?
> 
> 
>> Since we are on the topic of DOMRect, I'd like to request some utility
>> methods.
>>
>> First, a way to check if two DOMRects intersect and if so, a way to find
>> the resulting intersection area.
>>
>> Second, a way to check if one DOMRect is fully contained inside another
>> DOMRect.
>>
>> Third and finally, a way to check if a DOMPoint/DOMPointLiteral is
>> contained in the DOMRect.
> 
> Use cases for these?
> 
>> These are very handy methods to have in a rectangle abstraction and are
>> easy to implement. Lets not force content authors to implement this.
>> Better have it right in the interface.
> 

I do not have any use cases. At least nothing better than "people will
want a generic Rectangle class".

Received on Wednesday, 25 September 2013 13:39:36 UTC