Make is_equal_approx separate for structures

This commit adds exposed behavior for C#
This commit is contained in:
Aaron Franke 2019-10-14 16:33:45 -04:00
parent 1fed266bf5
commit 86922ff70b
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
31 changed files with 118 additions and 16 deletions

View file

@ -92,6 +92,8 @@ struct Vector2 {
Vector2 bounce(const Vector2 &p_normal) const;
Vector2 reflect(const Vector2 &p_normal) const;
bool is_equal_approx(const Vector2 &p_v) const;
Vector2 operator+(const Vector2 &p_v) const;
void operator+=(const Vector2 &p_v);
Vector2 operator-(const Vector2 &p_v) const;