Provide feature parity for Vector2i with Godot by fpdotmonkey · Pull Request #978 · godot-rust/gdext (original) (raw)

This implements all remaining functions for Vector2i that Godot has, with a couple intentional exceptions. float scalar arithmetic won't be added because in Rust one should be explicit about int/float conversions. The AXIS_X and AXIS_Y constant also won't be added as they are shared with Vector2.

This is a part of the December 2024 gdext Mini Hackathon.