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

Vector cleanup #416

Merged
merged 7 commits into from Mar 19, 2018

Conversation

Projects
None yet
1 participant
@illume
Copy link
Member

illume commented Mar 15, 2018

Some changes from the mailing list discussion.

  • Tests and fixes for keyword arguments with pygame.math.Vector
  • Tests for Vector2, and Vector3 scalar constructors like GLSL.
  • missing an element is an error now, no zero default. Vector(1, 2) fails.
  • Added magnitude to Vector types, which is an alias for length.
  • pygame.math require import (no missing module).
  • pygame.Vector2 pygame.Vector3 available. Not in pygame.locals for now, to avoid possible breakage with common Vector2/Vector3 names.

@illume illume merged commit 7561a36 into master Mar 19, 2018

2 of 4 checks passed

continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
Details
continuous-integration/travis-ci/push The Travis CI build could not complete due to an error
Details
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details

@illume illume deleted the vectorcleanup branch Mar 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.