Skip to content

Fix ambiguous (i, j) notation in transform formula#9

Merged
emmanuelmathot merged 1 commit into
mainfrom
fix-ij
May 13, 2026
Merged

Fix ambiguous (i, j) notation in transform formula#9
emmanuelmathot merged 1 commit into
mainfrom
fix-ij

Conversation

@maxrjones
Copy link
Copy Markdown
Collaborator

Summary

  • Replace ambiguous (i, j) notation in the affine transform formula with explicit (col_index, row_index) to prevent confusion with array indexing's (row, col) convention

Motivation

In array programming (numpy, etc.), (i, j) universally means (row, col). But in the transform formula, i was the column index and j was the row index (matching the Affine library's (col, row) input ordering). This mismatch could lead to implementations getting the transform backwards.

@emmanuelmathot emmanuelmathot merged commit 71e4d0d into main May 13, 2026
@emmanuelmathot emmanuelmathot deleted the fix-ij branch May 13, 2026 20:29
@emmanuelmathot emmanuelmathot linked an issue May 13, 2026 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Clarify text around transform origin being top-left corner

2 participants