MCPcopy Create free account
hub / github.com/melonjs/melonJS / transform

Method transform

packages/melonjs/src/renderable/renderable.js:629–634  ·  view source on GitHub ↗

* multiply the renderable currentTransform with the given matrix * @see Renderable#currentTransform * @param {Matrix2d|Matrix3d} m - the transformation matrix * @returns {Renderable} Reference to this object for method chaining

(m)

Source from the content-addressed store, hash-verified

627 * @returns {Renderable} Reference to this object for method chaining
628 */
629 transform(m) {
630 this.currentTransform.multiply(m);
631 this.updateBounds();
632 this.isDirty = true;
633 return this;
634 }
635
636 /**
637 * return the angle to the specified target

Callers 2

preDrawMethod · 0.45
toCanvasMethod · 0.45

Calls 2

updateBoundsMethod · 0.95
multiplyMethod · 0.45

Tested by

no test coverage detected