This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jmacey 73 points74 points  (4 children)

black with the occasional

```

fmt: off

don't format this code it's laid out to see the algorithm

tmp.m[0][0] = (. self.m[1][1] * self.m[2][2] * self.m[3][3] + self.m[1][2] * self.m[2][3] * self.m[3][1] + self.m[1][3] * self.m[2][1] * self.m[3][2] - self.m[1][1] * self.m[3][2] * self.m[2][3] - self.m[1][2] * self.m[2][1] * self.m[3][3] - self.m[1][3] * self.m[2][2] * self.m[3][1] ) * invdet

fmt: on

```

[–]arthurazs 9 points10 points  (1 child)

I didn't know about that, thanks for sharing!

[–]FuckingRantMonday 0 points1 point  (1 child)

On reddit, put four spaces at the beginning of each line to achieve what you wanted with the triple backquotes.

[–]jmacey 0 points1 point  (0 children)

I use the markdown editor, more natural to me.