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 GoostMath singleton #153

Merged
merged 1 commit into from
Nov 25, 2021
Merged

Add GoostMath singleton #153

merged 1 commit into from
Nov 25, 2021

Conversation

Xrayez
Copy link
Contributor

@Xrayez Xrayez commented Nov 25, 2021

This will be the home for math functions in Goost, see #151.

Implemented Bezier interpolation:

image

and Catmull-Rom interpolation functions which is similar to #77.

Both support float, Vector2 and Vector3.

Added is_equal_approx() and is_zero_approx() with configurable tolerance which is impossible to configure in Godot's is_equal_approx(). CMP_EPSILON is not exposed either, see godotengine/godot-proposals#3565, unfortunately there's no way to bind float-based constants even via modules.

This will be the new home for math functions in Goost.

Implemented Bezier and Catmull-Rom interpolation functions.

Added `is_equal_approx()` and `is_zero_approx()` with configurable tolerance (which is impossible to configure in Godot's `is_equal_approx()`).
@Xrayez Xrayez added this to the 1.2-gd3 milestone Nov 25, 2021
@Xrayez Xrayez added component:math ➕ feature 💡 New feature proposal labels Nov 25, 2021
@Xrayez Xrayez merged commit d111187 into gd3 Nov 25, 2021
@Xrayez Xrayez deleted the math branch November 25, 2021 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant