Skip to content

Add Rect4 type aliases and Extents.extent override for Rect4 (ZM)#279

Merged
ffreyer merged 5 commits into
masterfrom
as/rect4-aliases-and-extent
Jun 10, 2026
Merged

Add Rect4 type aliases and Extents.extent override for Rect4 (ZM)#279
ffreyer merged 5 commits into
masterfrom
as/rect4-aliases-and-extent

Conversation

@asinghvi17

Copy link
Copy Markdown
Member

Closes / supersedes #218 on latest master.

Summary

  • Adds Rect4{T} type alias (i.e. Rect{4,T}) and concrete aliases Rect4d, Rect4f, Rect4i, following the existing Rect2/Rect3 pattern
  • Exports all four new aliases
  • Implements Extents.extent(rect::Rect4) returning an Extent with X, Y, Z, M fields (for XY + Z + measure coordinates)
  • Updates the docstring table and the @doc symbol list to include the 4-dim row

Note: Extents.extent for Rect3 was already merged in a prior PR, so only the Rect4 pieces are new here.

Test plan

  • Rect4(0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0) constructs successfully
  • Extents.extent(::Rect4) returns correct Extent(X=…, Y=…, Z=…, M=…)
  • Rect4d, Rect4f, Rect4i resolve to the correct concrete types
  • Full test suite passes (1233 tests, 0 failures)

🤖 Generated with Claude Code

asinghvi17 and others added 2 commits June 9, 2026 15:43
Adds `Rect4{T}` and concrete aliases (`Rect4d`, `Rect4f`, `Rect4i`) following
the existing `Rect2`/`Rect3` pattern, and implements `Extents.extent` for 4D
rectangles returning an Extent with X, Y, Z, M fields.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Covers the new Rect4 extent method and aliases, matching the existing
Rect2/Rect3 test pattern in the Extent testset.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@asinghvi17 asinghvi17 marked this pull request as ready for review June 9, 2026 22:55
@ffreyer ffreyer merged commit 7df1634 into master Jun 10, 2026
13 of 14 checks passed
@ffreyer ffreyer deleted the as/rect4-aliases-and-extent branch June 10, 2026 16:30
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