[geometry] Cloning DOMPoint, DOMMatrix and DOMRect instances

What will be the preferred way to clone an instance of DOMPoint, DOMMatrix and DOMRect? Will it be possible to pass an instance to a constructor in order to create a clone? For example:

  let initialPosition = new Point(100, 100);
  let currentPosition = new Point(initialPosition);

Even if this will be possible, I think it would more convenient to have a clone() method on geometry interfaces just like there is cloneNode() on DOM Node interface:

  let initialPosition = new Point(100, 100);
  let currentPosition = initialPosition.clone();

Received on Saturday, 28 December 2013 08:28:55 UTC