1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-22 09:27:40 +00:00

sol:: basic shmup works

This commit is contained in:
Zeno Rogue
2019-07-31 15:19:40 +02:00
parent 06a5309468
commit 774c871c74
5 changed files with 39 additions and 12 deletions

View File

@@ -796,4 +796,14 @@ transmatrix solmul(const transmatrix T, const transmatrix V) {
else return T * V;
}
transmatrix solmul_pt(const transmatrix Position, const transmatrix T) {
if(sol) return solv::get_solmul_pt(Position, T);
else return Position * T;
}
transmatrix spin_towards(const transmatrix Position, const hyperpoint goal) {
if(sol) return solv::spin_towards(Position, goal);
return Position * rspintox(inverse(Position) * goal);
}
}