MCPcopy Index your code
hub / github.com/jabbany/CommentCoreLibrary / appendRotation

Method appendRotation

src/scripting/api/Display/Matrix.ts:206–214  ·  view source on GitHub ↗
(degrees:number, axis:Vector3D, pivotPoint:Vector3D = null)

Source from the content-addressed store, hash-verified

204 }
205
206 public appendRotation(degrees:number, axis:Vector3D, pivotPoint:Vector3D = null):void {
207 if (pivotPoint !== null) {
208 this.appendTranslation(pivotPoint.x, pivotPoint.y, pivotPoint.z);
209 }
210 this._data = this.dotProduct(this.rotationMatrix(degrees * Math.PI / 180, axis), this._data);
211 if (pivotPoint !== null) {
212 this.appendTranslation(-pivotPoint.x, -pivotPoint.y, -pivotPoint.z);
213 }
214 }
215
216 public appendTranslation(x:number, y:number, z:number):void {
217 this._data = this.dotProduct([

Callers 1

box3dMethod · 0.80

Calls 3

appendTranslationMethod · 0.95
dotProductMethod · 0.95
rotationMatrixMethod · 0.95

Tested by

no test coverage detected