diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2019-10-14 16:33:45 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2019-10-14 16:46:54 -0400 |
commit | 86922ff70ba533b376a6680f965f542894e8c614 (patch) | |
tree | b99bc39067ce17ec257ad44199becdc61b69d3c2 /modules/mono/glue/Managed/Files/Quat.cs | |
parent | 1fed266bf5452b30376db62495f4985f6975f2c1 (diff) |
Make is_equal_approx separate for structures
This commit adds exposed behavior for C#
Diffstat (limited to 'modules/mono/glue/Managed/Files/Quat.cs')
-rw-r--r-- | modules/mono/glue/Managed/Files/Quat.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/mono/glue/Managed/Files/Quat.cs b/modules/mono/glue/Managed/Files/Quat.cs index 845c7c730e..52f0305b16 100644 --- a/modules/mono/glue/Managed/Files/Quat.cs +++ b/modules/mono/glue/Managed/Files/Quat.cs @@ -366,6 +366,11 @@ namespace Godot return Mathf.IsEqualApprox(x, other.x) && Mathf.IsEqualApprox(y, other.y) && Mathf.IsEqualApprox(z, other.z) && Mathf.IsEqualApprox(w, other.w); } + public bool IsEqualApprox(Quat other) + { + return Mathf.IsEqualApprox(x, other.x) && Mathf.IsEqualApprox(y, other.y) && Mathf.IsEqualApprox(z, other.z) && Mathf.IsEqualApprox(w, other.w); + } + public override int GetHashCode() { return y.GetHashCode() ^ x.GetHashCode() ^ z.GetHashCode() ^ w.GetHashCode(); |