val volumeWithin: (Vec3, Vec3) -> List[Vec3] = (a: Vec3, b: Vec3) -> {
val Vec3(ax, ay, az) = a
val Vec3(bx, by, bz) = b
val (minX, maxX) =
if(ax <= bx) (ax, bx)
else (bx, ax)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
???? ???? ???? 0000: | |
[TODO: document special cases related to Xemnas] | |
???? ???? ??0? 0000: | |
???? ???? ??00 0000 iiii iiii iiii iiii iiii iiii iiii iiii: | |
load immediate INT | |
push to TP | |
???? ???? ??01 0000 ffff ffff ffff ffff ffff ffff ffff ffff: | |
load immediate FLOAT | |
push to TP | |
iiii iiii ii1m 0000 oooo oooo oooo oooo: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TEMPDIR=`mktemp -d --tmpdir=/tmp` | |
CURDIR=`pwd` | |
cd $TEMPDIR | |
echo "\documentclass[convert]{standalone}\begin{document}" > src.tex | |
echo $1 >> src.tex | |
echo "\end{document}" >> src.tex | |
pdflatex -shell-escape src.tex > /dev/null | |
cat src.png | xclip -selection c -t image/png |