-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AxisAlignedBB is now immutable #95
Conversation
I'd prefer if we kept the |
I said the same thing to myself but i think it's better to keep logic between Vector & AABB. |
Maybe add |
Vector isn't relevant to this code. Totally different API. If anything, I'd've preferred
I don't want to penalize correct code. There's no point doing a deprecation like that, it's just delaying the inevitable. If we remove the
If we just remove the mutable variants and keep
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are now many incorrect @return $this
doc comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking better, but I think the docs could be cleaned up
Outsets the bounds of this AxisAlignedBB by the specified X, Y and Z.
Returns an expanded clone of this AxisAlignedBB.
can be reworded like
Returns a copy of the AxisAlignedBB with bounds outset by the specified X, Y and Z.
etc
Co-authored-by: Dylan T. <dktapps@pmmp.io>
Co-authored-by: Dylan T. <dktapps@pmmp.io>
Co-authored-by: Dylan T. <dktapps@pmmp.io>
Like #90 but for AABB, fix #88