Skip to content

Commit e765a99

Browse files
committed
Update Axis.cs
1 parent 5f37d75 commit e765a99

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Runtime/Axis.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public bool NegativeForFrames(int duration)
260260
throw
261261
new System.ArgumentOutOfRangeException("durationFrames", ValueMustNotBeNegative("durationFrames"));
262262
return
263-
Negative && duration >= GetNegativeDurationFrames();
263+
Negative && duration <= GetNegativeDurationFrames();
264264
}
265265

266266
/// <summary>
@@ -283,7 +283,7 @@ public bool NegativeForSeconds(float duration)
283283
throw
284284
new System.ArgumentOutOfRangeException("duration", ValueMustNotBeNegative("duration"));
285285
return
286-
Negative && duration >= GetNegativeDurationSeconds();
286+
Negative && duration <= GetNegativeDurationSeconds();
287287
}
288288

289289
/// <summary>
@@ -305,7 +305,7 @@ public bool NeutralForFrames(int duration)
305305
throw
306306
new System.ArgumentOutOfRangeException("durationFrames", ValueMustNotBeNegative("durationFrames"));
307307
return
308-
Neutral && duration >= GetNeutralDurationFrames();
308+
Neutral && duration <= GetNeutralDurationFrames();
309309
}
310310

311311
/// <summary>
@@ -328,7 +328,7 @@ public bool NeutralForSeconds(float duration)
328328
new System.ArgumentOutOfRangeException("durationSeconds",
329329
ValueMustNotBeNegative("durationSeconds"));
330330
return
331-
Neutral && duration >= GetNeutralDurationSeconds();
331+
Neutral && duration <= GetNeutralDurationSeconds();
332332
}
333333

334334
/// <summary>
@@ -350,7 +350,7 @@ public bool PositiveForFrames(int duration)
350350
throw
351351
new System.ArgumentOutOfRangeException("durationFrames", ValueMustNotBeNegative("durationFrames"));
352352
return
353-
Positive && duration >= GetPositiveDurationFrames();
353+
Positive && duration <= GetPositiveDurationFrames();
354354
}
355355

356356
/// <summary>
@@ -374,7 +374,7 @@ public bool PositiveForSeconds(float duration)
374374
new System.ArgumentOutOfRangeException("durationSeconds",
375375
ValueMustNotBeNegative("durationSeconds"));
376376
return
377-
Positive && duration >= GetPositiveDurationSeconds();
377+
Positive && duration <= GetPositiveDurationSeconds();
378378
}
379379

380380
/// <summary>

0 commit comments

Comments
 (0)