Skip to content

Conversation

@tomcur
Copy link
Contributor

@tomcur tomcur commented Dec 3, 2025

This may be desirable as the generic abstraction; also note there already is an fn area(Aabb2D<T: Scalar) -> T::Acc (if we land this, area could become a method on Aabb2D<T: Scalar>).

The const-ness could be gained back with rust-lang/rfcs#3762 at some (hopefully not-too-distant) future Rust version.

@tomcur tomcur changed the title Implement Aabb2D<T: Scalar>::from_xywh index: Implement Aabb2D<T: Scalar>::from_xywh Dec 3, 2025
Copy link
Contributor

@waywardmonkeys waywardmonkeys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a rebase, then you can squash it.

This may be desirable as the generic abstraction; also note there
already is an `fn area(Aabb2D<T: Scalar) -> T::Acc` (if we land this,
`area` could become a method on `Aabb2D<T: Scalar>`))

The `const`-ness could be gained back with
rust-lang/rfcs#3762 at some (hopefully
not-too-distant) future Rust version.
@tomcur tomcur merged commit fd3fbb2 into endoli:main Dec 3, 2025
15 checks passed
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.

2 participants