Skip to content

Add is_between() method#154

Merged
Xrayez merged 1 commit intogd3from
between-a-b
Nov 26, 2021
Merged

Add is_between() method#154
Xrayez merged 1 commit intogd3from
between-a-b

Conversation

@Xrayez
Copy link
Copy Markdown
Contributor

@Xrayez Xrayez commented Nov 26, 2021

Closes godotengine/godot#31639.

  1. Removes the need to use x >= a and x <= b, so improves readability and/or usability.
  2. Will work the same both for a > b or b > a, so this makes comparisons work regardless of order, in cases where you cannot be sure which value is min or max.

@Xrayez Xrayez added enhancement Improvement of existing features component:math ➕ labels Nov 26, 2021
@Xrayez Xrayez merged commit a4d6439 into gd3 Nov 26, 2021
@Xrayez Xrayez deleted the between-a-b branch November 26, 2021 15:39
@Xrayez Xrayez added this to the 1.2-gd3 milestone Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:math ➕ enhancement Improvement of existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

is_between() method

1 participant