Skip to content

Commit ac7240a

Browse files
authored
Uni-48530 Implement IEquatable for all types in FbxDoubleTemplates.cs (API Review)
1 parent 14e5caa commit ac7240a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Packages/com.autodesk.fbx/Scripts/FbxDoubleTemplates.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Autodesk.Fbx
1414
* That allows passing these structs on the stack between C# and C++, rather than
1515
* heap-allocating a class on either side, which is about 100x slower.
1616
*/
17-
public struct FbxDouble2 {
17+
public struct FbxDouble2: System.IEquatable<FbxDouble2> {
1818
public double X;
1919
public double Y;
2020

@@ -71,7 +71,7 @@ public override string ToString() {
7171
}
7272
}
7373

74-
public struct FbxDouble3 {
74+
public struct FbxDouble3: System.IEquatable<FbxDouble3> {
7575
public double X;
7676
public double Y;
7777
public double Z;
@@ -133,7 +133,7 @@ public override string ToString() {
133133
}
134134
}
135135

136-
public struct FbxDouble4 {
136+
public struct FbxDouble4: System.IEquatable<FbxDouble4> {
137137
public double X;
138138
public double Y;
139139
public double Z;
@@ -200,7 +200,7 @@ public override string ToString() {
200200
}
201201
}
202202

203-
public struct FbxColor {
203+
public struct FbxColor: System.IEquatable<FbxColor> {
204204
public double mRed;
205205
public double mGreen;
206206
public double mBlue;
@@ -275,7 +275,7 @@ public override string ToString() {
275275
}
276276
}
277277

278-
public struct FbxVector2 {
278+
public struct FbxVector2: System.IEquatable<FbxVector2> {
279279
public double X;
280280
public double Y;
281281

@@ -389,7 +389,7 @@ public double Distance(FbxVector2 other) {
389389
}
390390
}
391391

392-
public struct FbxVector4 {
392+
public struct FbxVector4: System.IEquatable<FbxVector4> {
393393
public double X;
394394
public double Y;
395395
public double Z;

0 commit comments

Comments
 (0)