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

Method prependRotation

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

Source from the content-addressed store, hash-verified

236 }
237
238 public prependRotation(degrees:number, axis:Vector3D, pivotPoint:Vector3D = null):void {
239 if (pivotPoint !== null) {
240 this.prependTranslation(pivotPoint.x, pivotPoint.y, pivotPoint.z);
241 }
242 this._data = this.dotProduct(this._data, this.rotationMatrix(degrees * Math.PI / 180, axis));
243 if (pivotPoint !== null) {
244 this.prependTranslation(-pivotPoint.x, -pivotPoint.y, -pivotPoint.z);
245 }
246 }
247
248 public prependTranslation(x:number, y:number, z:number):void {
249 this._data = this.dotProduct(this._data, [

Callers

nothing calls this directly

Calls 3

prependTranslationMethod · 0.95
dotProductMethod · 0.95
rotationMatrixMethod · 0.95

Tested by

no test coverage detected