(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)
| 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) { |
no test coverage detected