You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Vector3,Vector}from'vectors';/** * A simple 3x3 matrix structure. * * @export * @class Matrix3x3 */classMatrix{publicM11 : number;publicM12 : number;publicM13 : number;publicM21 : number;publicM22 : number;publicM23 : number;publicM31 : number;publicM32 : number;publicM33 : number;/** * Gets a column as a new vector. * * @param {number} index The index of the column (0 .. 2). * @returns {Vector3} A vector representing the column. */publicgetColumn_Breaks(index : number) : Vector3{if(index==0){returnnewVector3(this.M11,this.M21,this.M31);}elseif(index==1){returnnewVector3(this.M12,this.M22,this.M32);}elseif(index==2){returnnewVector3(this.M13,this.M23,this.M33);}else{thrownewRangeError('Invalid matrix 3x3 column index: '+index);}}/** * Gets a column as a new vector. * * @param {number} index The index of the column (0 .. 2). * @returns {Vector3} A vector representing the column. */publicgetColumn_Works(index : number) : Vector{if(index==0){returnnewVector(this.M11,this.M21,this.M31);}elseif(index==1){returnnewVector(this.M12,this.M22,this.M32);}elseif(index==2){returnnewVector(this.M13,this.M23,this.M33);}else{thrownewRangeError('Invalid matrix 3x3 column index: '+index);}}}
Fun fact: Seems even the GitHub highlighter can not handle that specific case :|
Copied from original issue: Microsoft/vscode-tslint#46
The text was updated successfully, but these errors were encountered:
From @Lunatix89 on April 23, 2016 14:43
Steps to Reproduce:
Fun fact: Seems even the GitHub highlighter can not handle that specific case :|
Copied from original issue: Microsoft/vscode-tslint#46
The text was updated successfully, but these errors were encountered: