Skip to content

Add GoostMath singleton - #153

Merged
Xrayez merged 1 commit into
gd3from
math
Nov 25, 2021
Merged

Xrayez merged 1 commit into
gd3from
math

Conversation

@Xrayez

@Xrayez Xrayez commented Nov 25, 2021 •

Copy link
Copy Markdown
Contributor

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