Skip to content
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

Rename Basis + Quaternion methods, closer to Godot #1035

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

Bromeon
Copy link
Member

@Bromeon Bromeon commented Feb 3, 2025

Intent is to express which methods extract part of the state ("get") vs. which perform full conversion ("to"). Also resolves ambiguity ("scale"). Generally, new names are also closer to Godot's naming, making porting easier.

Changes:

  • to_euler -> get_euler + get_euler_with
  • to_quat -> get_quaternion
  • from_quat -> from_quaternion
  • scale -> get_scale
  • new_looking_at -> looking_at

Intent is to express which methods extract part of the state ("get") vs.
which perform full conversion ("to"). Also resolves ambiguity ("scale").

Generally, new names are also closer to Godot's naming, making porting easier.

Changes:
- `to_euler` -> `get_euler` + `get_euler_with`
- `to_quat` -> `get_quaternion`
- `from_quat` -> `from_quaternion`
- `scale` -> `get_scale`
- `new_looking_at` -> `looking_at`
@Bromeon Bromeon added quality-of-life No new functionality, but improves ergonomics/internals c: core Core components labels Feb 3, 2025
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1035

@Bromeon Bromeon added this pull request to the merge queue Feb 5, 2025
Merged via the queue into master with commit 6cb37a8 Feb 5, 2025
15 checks passed
@Bromeon Bromeon deleted the qol/basis-method-names branch February 5, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: core Core components quality-of-life No new functionality, but improves ergonomics/internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants