* Rotate this renderable by the specified angle (in radians). * When called with just an angle, rotates around the Z axis (2D rotation). * When called with an angle and a Vector3d axis, rotates around that axis in 3D. * @param {number} angle - The angle to rotate (in radians) * @param {Vecto
(angle, v)
| 709 | * @returns {Renderable} Reference to this object for method chaining |
| 710 | */ |
| 711 | rotate(angle, v) { |
| 712 | if (angle !== 0) { |
| 713 | this.currentTransform.rotate(angle, v); |
| 714 | this.updateBounds(); |
| 715 | this.isDirty = true; |
| 716 | } |
| 717 | return this; |
| 718 | } |
| 719 | |
| 720 | /** |
| 721 | * scale the renderable around his anchor point. Scaling actually applies changes |
no test coverage detected