Skip to content

Instantly share code, notes, and snippets.

@nilium
Created January 13, 2010 04:56
Show Gist options
  • Select an option

  • Save nilium/275938 to your computer and use it in GitHub Desktop.

Select an option

Save nilium/275938 to your computer and use it in GitHub Desktop.
Mat4: class {
m:Double[16]
}
operator [] (mat:Mat4, row:Int) -> Double* {
return mat m[row*4]&
}
someMat := Mat4 new()
someMat[1][2] = 5
someMat[1][2] as String println()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment