W3C home > Mailing lists > Public > public-fxtf-archive@w3.org > November 2018

Re: [fxtf-drafts] [geometry] point.matrixTransformSelf (#325)

From: Dirk Schulze via GitHub <sysbot+gh@w3.org>
Date: Mon, 26 Nov 2018 20:52:45 +0000
To: public-fxtf-archive@w3.org
Message-ID: <issue_comment.created-441793819-1543265564-sysbot+gh@w3.org>
Oh I see. Yeah, the `*self` functions were introduced to chain the transformations:

```js
matrix.translateSelf(...).scaleSelf(...).rotateSelf(...);
```

So we probably didn't thought about other use cases at the time. Also, creating new instances of matrix with 16 slots (and another for is2D) is heavier than transformations on `DOMPoint`. I still see value on `*Self` in general though.


-- 
GitHub Notification of comment by dirkschulze
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/325#issuecomment-441793819 using your GitHub account
Received on Monday, 26 November 2018 20:52:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 26 November 2018 20:52:47 UTC