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

fixed problem with type conversions in Line3D #4080

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

SirJamesClarkMaxwell
Copy link
Contributor

Overview: What does this pull request change?

It prevent for passing wrong type of data in Line3D and Arrow3D.

Motivation and Explanation: Why and how do your changes improve the library?

It is inspired by this discord post, where point into Arrow3D has been passed as list of integers instead of floats, which broke subtraction during the Rotation. Right now, data will be automatically converted into the float64 format.

Links to added or changed documentation pages

Further Information and Comments

Reviewer Checklist

  • The PR title is descriptive enough for the changelog, and the PR is labeled correctly
  • If applicable: newly added non-private functions and classes have a docstring including a short summary and a PARAMETERS section
  • If applicable: newly added functions and classes are tested

@SirJamesClarkMaxwell SirJamesClarkMaxwell marked this pull request as ready for review December 30, 2024 18:11
Copy link
Member

@JasonGrace2282 JasonGrace2282 left a comment

Choose a reason for hiding this comment

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

Thanks!

manim/mobject/three_d/three_dimensions.py Outdated Show resolved Hide resolved
manim/mobject/three_d/three_dimensions.py Outdated Show resolved Hide resolved
test.py Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Did you mean to commit this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. Should I?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants