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

Method box3d

src/scripting/api/Display/Transform.ts:104–124  ·  view source on GitHub ↗
(sX:number = 1,
      sY:number = 1,
      sZ:number = 1,
      rotX:number = 0,
      rotY:number = 0,
      rotZ:number = 0,
      tX:number = 0,
      tY:number = 0,
      tZ:number = 0)

Source from the content-addressed store, hash-verified

102 }
103
104 public box3d(sX:number = 1,
105 sY:number = 1,
106 sZ:number = 1,
107 rotX:number = 0,
108 rotY:number = 0,
109 rotZ:number = 0,
110 tX:number = 0,
111 tY:number = 0,
112 tZ:number = 0):void {
113
114 if (this._matrix !== null || this._matrix3d === null) {
115 this._matrix = null;
116 this._matrix3d = new Matrix3D();
117 }
118 this._matrix3d.identity();
119 this._matrix3d.appendRotation(rotX, Vector3D.X_AXIS);
120 this._matrix3d.appendRotation(rotY, Vector3D.Y_AXIS);
121 this._matrix3d.appendRotation(rotZ, Vector3D.Z_AXIS);
122 this._matrix3d.appendScale(sX, sY, sZ);
123 this._matrix3d.appendTranslation(tX, tY, tZ);
124 }
125
126 public box(sX:number = 1, sY:number = 1, rot:number = 0, tX:number = 0, tY:number = 0):void {
127 if (this._matrix) {

Callers 2

boxMethod · 0.95
_updateBoxMethod · 0.80

Calls 4

appendRotationMethod · 0.80
appendScaleMethod · 0.80
appendTranslationMethod · 0.80
identityMethod · 0.45

Tested by

no test coverage detected