Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swapped top and bottom in Matrix44.orthogonal_projection #122

Open
switte-sf opened this issue Sep 11, 2023 · 0 comments
Open

Swapped top and bottom in Matrix44.orthogonal_projection #122

switte-sf opened this issue Sep 11, 2023 · 0 comments

Comments

@switte-sf
Copy link

switte-sf commented Sep 11, 2023

The factory method orthogonal_projection of Matrix44 swaps top and bottom when passing it via positional args to matrix44.create_orthogonal_projection.

Matrix44

@classmethod
 def orthogonal_projection(cls, left, right, top, bottom, near, far, dtype=None):
     """Creates a Matrix44 for use as an orthogonal projection matrix.
     """
     return cls(matrix44.create_orthogonal_projection(left, right, top, bottom, near, far, dtype))

matrix44

def create_orthogonal_projection(
    left,
    right,
    bottom,
    top,
    near,
    far,
    dtype=None
):
   ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant