Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixed Vector.clamp_magnitude() parameters#3133

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ankith26 merged 5 commits intopygame:mainfromandrewhong04:clamp-params-fix
Apr 13, 2022
Merged

Fixed Vector.clamp_magnitude() parameters#3133

ankith26 merged 5 commits intopygame:mainfromandrewhong04:clamp-params-fix
Apr 13, 2022

Conversation

@andrewhong04
Copy link
Contributor

This PR fixes the parameter order that my.clamp_magnitude() used. Previously, it was.clamp_magnitude(max, min=0). But now it's.clamp_magnitude(max) and.clamp_magnitude(min, max) to be more consistent with Python'srange().

Copy link
Contributor

@MyreMylarMyreMylar left a comment

Choose a reason for hiding this comment

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

LGTM 👍

andrewhong04 reacted with hooray emoji
@Starbuck5
Copy link
Contributor

Should this have a change to the typing?

@andrewhong04
Copy link
ContributorAuthor

Should this have a change to the typing?

Oh, I forgot about that.

Copy link
Contributor

@ankith26ankith26 left a comment

Choose a reason for hiding this comment

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

Left two reviews on typehints. Additionally this also needs a round ofpython3 setup.py format

홍준원and others added2 commitsApril 12, 2022 17:32
Co-authored-by: Ankith <46915066+ankith26@users.noreply.github.com>
Co-authored-by: Ankith <46915066+ankith26@users.noreply.github.com>
Copy link
Contributor

@ankith26ankith26 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the PR! 👍 🎉
Merging this PR since the lint fail ATM is unrelated to this PR

@illumeillume added enhancement New APIThis pull request may need extra debate as it adds a new class or function to pygame labelsOct 29, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@MyreMylarMyreMylarMyreMylar approved these changes

@ankith26ankith26ankith26 approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

enhancementmathpygame.mathNew APIThis pull request may need extra debate as it adds a new class or function to pygame

Projects

None yet

Milestone

2.1.3

Development

Successfully merging this pull request may close these issues.

5 participants

@andrewhong04@Starbuck5@MyreMylar@ankith26@illume

[8]ページ先頭

©2009-2025 Movatter.jp