Skip to content

Add line.scale()-scale_ip() functions #145

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

Closed
itzpr3d4t0r opened this issue Nov 11, 2022 · 2 comments · Fixed by #170
Closed

Add line.scale()-scale_ip() functions #145

itzpr3d4t0r opened this issue Nov 11, 2022 · 2 comments · Fixed by #170
Labels
submodule:line type:new_api Adds new functionalities to the project

Comments

@itzpr3d4t0r
Copy link
Member

No description provided.

@itzpr3d4t0r itzpr3d4t0r added type:new_api Adds new functionalities to the project submodule:line labels Nov 11, 2022
@andrewhong04
Copy link
Member

For this function, we should specify where the origin of the scale will be, such as maybe the midpoint, startpoint, or endpoint in the function parameters.

Line.scale(origin: float, modifier: float)

a.scale(0, 5) # scales from startpoint
a.scale(0.5, 5) # scales from midpoint
a.scale(1, 5) # scales from endpoint

@itzpr3d4t0r
Copy link
Member Author

Agreed

@itzpr3d4t0r itzpr3d4t0r moved this from Todo: Line to In Progress in pygame.geometry Jan 12, 2023
@itzpr3d4t0r itzpr3d4t0r changed the title Add line.scale() function Add line.scale()-scale_ip() functions Jan 12, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in pygame.geometry May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
submodule:line type:new_api Adds new functionalities to the project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants