Skip to content

Move & add some convenience stuff to Int3 - #74

Merged
ArtisticRoomba merged 2 commits into
ArtisticRoomba:masterfrom
Roudenn:maths-improvements
Sep 19, 2026
Merged

ArtisticRoomba merged 2 commits into
ArtisticRoomba:masterfrom
Roudenn:maths-improvements

Conversation

@Roudenn

@Roudenn Roudenn commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Added Int3.Zero that can be used instead of default - provides better code clarity because default isn't evident
Added Int3.CardinalOffsets which is a static Int3[] of 6 directions (3 axis each with a positive and a negative, sorted by X, Y, Z). Useful for iterating through all direct neighbors of a voxel (this is pretty often needed in most chunk traversal scenarios)

@ArtisticRoomba ArtisticRoomba left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

shore

@ArtisticRoomba
ArtisticRoomba merged commit 88f0f81 into ArtisticRoomba:master Sep 19, 2026
4 checks passed
ArtisticRoomba pushed a commit that referenced this pull request Sep 20, 2026
@Roudenn
Roudenn deleted the maths-improvements branch September 20, 2026 12: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.

2 participants