File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Packages/com.unity.formats.fbx/Editor/Scripts Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -68,24 +68,44 @@ public override bool Equals(object obj) {
68
68
return new MetricDistance ( a . _meters + b . _meters ) ;
69
69
}
70
70
71
+ public static MetricDistance Add ( MetricDistance a , MetricDistance b )
72
+ {
73
+ return a + b ;
74
+ }
75
+
71
76
public static MetricDistance operator - ( MetricDistance a , MetricDistance b ) {
72
77
if ( a == null ) throw new ArgumentNullException ( "a" ) ;
73
78
if ( b == null ) throw new ArgumentNullException ( "b" ) ;
74
79
return new MetricDistance ( a . _meters - b . _meters ) ;
75
80
}
76
81
82
+ public static MetricDistance Subtract ( MetricDistance a , MetricDistance b )
83
+ {
84
+ return a - b ;
85
+ }
86
+
77
87
public static MetricDistance operator * ( MetricDistance a , MetricDistance b ) {
78
88
if ( a == null ) throw new ArgumentNullException ( "a" ) ;
79
89
if ( b == null ) throw new ArgumentNullException ( "b" ) ;
80
90
return new MetricDistance ( a . _meters * b . _meters ) ;
81
91
}
82
92
93
+ public static MetricDistance Multiply ( MetricDistance a , MetricDistance b )
94
+ {
95
+ return a * b ;
96
+ }
97
+
83
98
public static MetricDistance operator / ( MetricDistance a , MetricDistance b ) {
84
99
if ( a == null ) throw new ArgumentNullException ( "a" ) ;
85
100
if ( b == null ) throw new ArgumentNullException ( "b" ) ;
86
101
return new MetricDistance ( a . _meters / b . _meters ) ;
87
102
}
88
103
104
+ public static MetricDistance Divide ( MetricDistance a , MetricDistance b )
105
+ {
106
+ return a / b ;
107
+ }
108
+
89
109
}
90
110
91
111
public class ImperialDistance {
You can’t perform that action at this time.
0 commit comments