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

Improve spline types #22

Open
ecurtiss opened this issue Jun 9, 2024 · 0 comments
Open

Improve spline types #22

ecurtiss opened this issue Jun 9, 2024 · 0 comments
Labels
help wanted Extra attention is needed improvement An improvement to an existing feature

Comments

@ecurtiss
Copy link
Owner

ecurtiss commented Jun 9, 2024

Today, a spline can be created from a list of all Vector2s, Vector3s, or CFrames. Many spline methods accept arguments of type Vector2 | Vector3 | CFrame, but the type checker does not know that each argument will have the same type in the intersection. For example, there are a few instances where the type checker dislikes a:Lerp(b) because it does not know that a and b are both Vector2s, Vector3s, or CFrames. This issue also extends to users since many methods return Vector2 | Vector3 even though the user knows which type they used to create the spline.

@ecurtiss ecurtiss added help wanted Extra attention is needed improvement An improvement to an existing feature labels Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed improvement An improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant