Skip to content

New pixel formats#297

Draft
jdahlstrom wants to merge 34 commits intodevfrom
new-pixfmts
Draft

New pixel formats#297
jdahlstrom wants to merge 34 commits intodevfrom
new-pixfmts

Conversation

@jdahlstrom
Copy link
Owner

No description provided.

Should check what's needed for writing one impl for all Affine.
Probably AsRef<[T]> or From or similar to get the components.
Mat4, Mat3, and Mat2 are now always real-to-real and take two optional
basis parameters and an optional dimension. For projection matrices,
new alias ProjMat3 is used; it goes well with ProjVec3.
* for [] for convenient sampling from slices with replacement
* for &T where T: Distrib to support [] and remove need to clone
* for Range<T> where Uniform<T>: Distrib, as uniform is the 95% use case
For years the matrices have accidentally been left-handed,
not right-handed as intended. This stuff is tricky...
* linear() returns the linear 3x3/2x2 submatrix.
* translation() returns the affine translation vector.

Also combine two Mat4 impl blocks.
Avoids having to explicitly import the trait.
Recursively subdivided from an icosahedron.
Currently implemented for types whose diff type is a vector.
Original approximate() method renamed to approximate_with().
@jdahlstrom jdahlstrom marked this pull request as draft November 12, 2025 22:34
@jdahlstrom jdahlstrom force-pushed the dev branch 2 times, most recently from 8edeca7 to 7b1d3df Compare November 21, 2025 21:33
@jdahlstrom jdahlstrom force-pushed the dev branch 2 times, most recently from 024a425 to cce0d4f Compare December 15, 2025 14:07
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.

1 participant