You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of these are relatively easy to generalize. Some are not that useful (like projections), but it would be cool to have code that just works no matter the dimension. Rotation might be useful for topology and scientific applications (beyond just rendering) - implementing this and generalizing Transform was the main motivator for opening this issues.
However, I don't personally need this right now. I just wanted to propose this as I don't see any good alternatives.
This is easily generalized for arbitrary slicing planes. z-axis (self.matrix[(2, 2)]) is flipped because camera looks towards -Z in graphics APIs, though correctness of that depends on use case I guess.
Activity
Caellian commentedon Nov 5, 2025
Orthographic projection formula from Wikipedia:
This is easily generalized for arbitrary slicing planes. z-axis (
self.matrix[(2, 2)]) is flipped because camera looks towards -Z in graphics APIs, though correctness of that depends on use case I guess.Caellian commentedon Nov 6, 2025
Related to PR #1366.
muzammil35 commentedon Nov 27, 2025
Can I give this issue a try?