Skip to content

Make ImVec2/ImVec4 math operations immutable #317

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

Merged
merged 1 commit into from
Jan 29, 2025
Merged

Conversation

SpaiR
Copy link
Owner

@SpaiR SpaiR commented Jan 29, 2025

Updated math operations (plus, minus, times, div) for ImVec2 and ImVec4 to return new instances instead of modifying the existing ones, ensuring immutability.

Type of change

  • Minor changes or tweaks (quality of life stuff)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Updated math operations (`plus`, `minus`, `times`, `div`) for `ImVec2` and `ImVec4` to return new instances instead of modifying the existing ones, ensuring immutability.
@SpaiR SpaiR added the feat New feature or request label Jan 29, 2025
@SpaiR SpaiR self-assigned this Jan 29, 2025
@SpaiR SpaiR linked an issue Jan 29, 2025 that may be closed by this pull request
@SpaiR SpaiR merged commit d27e3aa into main Jan 29, 2025
7 checks passed
@SpaiR SpaiR deleted the feat/immutable-vec-ops branch January 29, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImVec usage from kotlin is not great.
1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy