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

Added Godot's math functions #451

Merged
merged 1 commit into from
Sep 8, 2020
Merged

Added Godot's math functions #451

merged 1 commit into from
Sep 8, 2020

Conversation

Zylann
Copy link
Collaborator

@Zylann Zylann commented Aug 30, 2020

Added math functions from Godot, available in a Math:: namespace. Also added Math_TAU and improved a few things in vector classes.

Closes #107
Probably closes #385 too

@Zylann Zylann added the enhancement This is an enhancement on the current functionality label Aug 30, 2020
Copy link
Collaborator

@BastiaanOlij BastiaanOlij left a comment

Choose a reason for hiding this comment

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

Looks fine to me,

@Zylann Zylann merged commit c9a740b into godotengine:master Sep 8, 2020
@superRaptor911
Copy link

Template for lerp for float, double, Vector2, Vector 3 support?

template<class T>
T lerp(const T &minv, const T &maxv, float t) {
	return minv + t * (maxv - minv);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an enhancement on the current functionality
Projects
None yet
3 participants