mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-03-07 22:09:43 +00:00
fixed spin_towards
This commit is contained in:
4
sol.cpp
4
sol.cpp
@@ -383,8 +383,6 @@ namespace solv {
|
||||
}
|
||||
|
||||
transmatrix spin_towards(const transmatrix Position, const hyperpoint goal) {
|
||||
// Position * rspintox(inverse(Position) * goal);
|
||||
// Position * rspintox(inverse(back_Position) * back_goal);
|
||||
|
||||
hyperpoint at = tC0(Position);
|
||||
transmatrix push_back = inverse(eupush(at));
|
||||
@@ -393,7 +391,7 @@ namespace solv {
|
||||
|
||||
transmatrix back_Position = push_back * Position;
|
||||
|
||||
return Position * rspintox(inverse(back_Position) * back_goal);
|
||||
return rspintox(inverse(back_Position) * back_goal);
|
||||
}
|
||||
|
||||
string solshader =
|
||||
|
||||
Reference in New Issue
Block a user