Skip to content

is_finite function missing from Basis, Vector2, Vector3, etc.(about 11 classes should have it) #1434

Closed

Description

@Ughuuu

Godot version

4.2

godot-cpp version

4.2

System information

mac m1

Issue description

In godot > core/math/basis.h there is bool is_finite() const;
In godot-cpp there isn't such a method. I tried to replicate it, but it's also missing on Vector2 and Vector3 and other classes (more can be found in extension_api.json file with all places it should be).

Steps to reproduce

Minimal reproduction project

Activity

  1. added
    bug
    on Apr 10, 2024
  2. added this to the 4.x milestone on Apr 10, 2024
  3. dsnopek commented on Apr 10, 2024

    @dsnopek
    Collaborator

    Thanks!

    Given that Vector2, Vector3, Basis and other variant types are re-implemented in godot-cpp (as opposed to using bound methods), this will probably need to just be copied into godot-cpp from the original Godot implementation.

  4. AThousandShips commented on Apr 10, 2024

    @AThousandShips
    Member

    I'll write up a transfer PR tomorrow for these classes syncing them

  5. Ughuuu commented on Apr 10, 2024

    @Ughuuu
    Author

    Perfect, thanks, initially I wanted to do a PR but there seems to be a bit of work to do.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions