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

#6: Create Vector2 Class #16

Merged
merged 2 commits into from
Apr 7, 2022
Merged

#6: Create Vector2 Class #16

merged 2 commits into from
Apr 7, 2022

Conversation

mitchwadair
Copy link
Owner

@mitchwadair mitchwadair commented Apr 7, 2022

Additions

  • Adds the Vector2 class
    • this is simply an alias for Vector3, with some minor changes to the constructor and some methods, which will make it more intuitive for the 2D context that SFramework is aimed at
    • Vector2:New() will take both 1 and 2 args
    • Vector2:Forward() will error every call
    • Vector2:UnitZ() will error every call
    • Closes Create Vector2 Class #6
  • Update doc for new Vector2 class

@mitchwadair mitchwadair merged commit 90e5995 into master Apr 7, 2022
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.

Create Vector2 Class
1 participant