RationalTimeExtensions
Extension method operations for RationalTime.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Class
- Namespace: Unity.IntegerTime
- Assembly: UnityEngine.CoreModule
public static class RationalTimeExtensions
Remarks
All binary operations throw exceptions if the rates for 2 operands do not match.
Static Methods
Method | Description |
|---|---|
| Add | Adds two Rational Times together. |
| Convert | Converts a RationalTime from one rate to another. This is lossless unless it triggers an overflow. |
| Divide | Divides a RationalTime by another. |
| IsValid | Validity check. |
| Multiply | Multiplies two Rational Times together. |
| Subtract | Subtracts a RationalTime from another. |
| ToDouble | Converts the data type to Double. |