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

Add math vector methods to FlxPoint (or create FlxVector) #188

Open
Dovyski opened this issue Oct 30, 2013 · 3 comments
Open

Add math vector methods to FlxPoint (or create FlxVector) #188

Dovyski opened this issue Oct 30, 2013 · 3 comments

Comments

@Dovyski
Copy link
Member

Dovyski commented Oct 30, 2013

Currently FlxPoint has one or two methods that can be used in math vector calculations. It's pretty hard to implement vector dependent functionalities using Flixel, such as steering behaviors. Useful methods such as rotate(), normalize(), perp(), dot(), cross(), etc are missing.

It would be great to have them. If they "clutter" the API, the FlxVector class could be created.

@Gama11
Copy link

Gama11 commented Mar 5, 2014

Feel free to borrow some code from HaxeFlixel's FlxVector. :)

@Dovyski
Copy link
Member Author

Dovyski commented Mar 5, 2014

Consider it done! :) There are even more methods than I could thing of. Thanks!

@IQAndreas
Copy link
Member

I added FlxVector to the FlxMath spreadsheet to make things easier to organize:

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

No branches or pull requests

3 participants