CompressedTimeSpan Struct
Namespace: Stride.Animations
Assembly: Stride.Engine.dll
[DataSerializer(typeof(CompressedTimeSpanSerializer))]
public struct CompressedTimeSpan : IComparable, IComparable<CompressedTimeSpan>, IEquatable<CompressedTimeSpan>
Name |
Description |
Constructors
|
|
CompressedTimeSpan(Int32) |
|
Fields
|
|
MaxValue |
|
|
MinValue |
|
|
TicksPerMillisecond |
|
|
TicksPerSecond |
|
|
Zero |
|
Properties
|
|
Ticks |
|
Methods
|
|
CompareTo(CompressedTimeSpan) |
|
|
CompareTo(Object) |
|
|
Equals(CompressedTimeSpan) |
|
|
Equals(Object) |
|
|
FromSeconds(Double) |
|
|
GetHashCode() |
|
|
ToString() |
|
Operators
|
|
Addition(CompressedTimeSpan, CompressedTimeSpan) |
|
|
Division(CompressedTimeSpan, Int32) |
|
|
Division(CompressedTimeSpan, Single) |
|
|
Equality(CompressedTimeSpan, CompressedTimeSpan) |
|
|
Explicit(TimeSpan to CompressedTimeSpan) |
|
|
GreaterThan(CompressedTimeSpan, CompressedTimeSpan) |
|
|
GreaterThanOrEqual(CompressedTimeSpan, CompressedTimeSpan) |
|
|
Implicit(CompressedTimeSpan to TimeSpan) |
|
|
Inequality(CompressedTimeSpan, CompressedTimeSpan) |
|
|
LessThan(CompressedTimeSpan, CompressedTimeSpan) |
|
|
LessThanOrEqual(CompressedTimeSpan, CompressedTimeSpan) |
|
|
Multiply(CompressedTimeSpan, Int32) |
|
|
Multiply(CompressedTimeSpan, Single) |
|
|
Subtraction(CompressedTimeSpan, CompressedTimeSpan) |
|
|
Improve this Doc
View Source
Constructors
CompressedTimeSpan(Int32)
public CompressedTimeSpan(int ticks)
Parameters
Type |
Name |
Description |
System.Int32 |
ticks |
|
|
Improve this Doc
View Source
Fields
MaxValue
public static readonly CompressedTimeSpan MaxValue
Field Value
MinValue
public static readonly CompressedTimeSpan MinValue
Field Value
TicksPerMillisecond
public const int TicksPerMillisecond = 100
Field Value
Type |
Description |
System.Int32 |
|
TicksPerSecond
public const int TicksPerSecond = 100000
Field Value
Type |
Description |
System.Int32 |
|
Zero
public static readonly CompressedTimeSpan Zero
Field Value
|
Improve this Doc
View Source
Properties
Ticks
public readonly int Ticks { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Methods
CompareTo(CompressedTimeSpan)
public int CompareTo(CompressedTimeSpan other)
Parameters
Returns
Type |
Description |
System.Int32 |
|
CompareTo(Object)
public int CompareTo(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Int32 |
|
Equals(CompressedTimeSpan)
public bool Equals(CompressedTimeSpan other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
FromSeconds(Double)
public static CompressedTimeSpan FromSeconds(double seconds)
Parameters
Type |
Name |
Description |
System.Double |
seconds |
|
Returns
GetHashCode()
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
ToString()
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
|
Improve this Doc
View Source
Operators
Addition(CompressedTimeSpan, CompressedTimeSpan)
public static CompressedTimeSpan operator +(CompressedTimeSpan t1, CompressedTimeSpan t2)
Parameters
Returns
Division(CompressedTimeSpan, Int32)
public static CompressedTimeSpan operator /(CompressedTimeSpan t1, int factor)
Parameters
Returns
Division(CompressedTimeSpan, Single)
public static CompressedTimeSpan operator /(CompressedTimeSpan t1, float factor)
Parameters
Returns
Equality(CompressedTimeSpan, CompressedTimeSpan)
public static bool operator ==(CompressedTimeSpan left, CompressedTimeSpan right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Explicit(TimeSpan to CompressedTimeSpan)
public static explicit operator CompressedTimeSpan(TimeSpan t)
Parameters
Type |
Name |
Description |
System.TimeSpan |
t |
|
Returns
GreaterThan(CompressedTimeSpan, CompressedTimeSpan)
public static bool operator>(CompressedTimeSpan t1, CompressedTimeSpan t2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GreaterThanOrEqual(CompressedTimeSpan, CompressedTimeSpan)
public static bool operator >=(CompressedTimeSpan t1, CompressedTimeSpan t2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implicit(CompressedTimeSpan to TimeSpan)
public static implicit operator TimeSpan(CompressedTimeSpan t)
Parameters
Returns
Type |
Description |
System.TimeSpan |
|
Inequality(CompressedTimeSpan, CompressedTimeSpan)
public static bool operator !=(CompressedTimeSpan left, CompressedTimeSpan right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
LessThan(CompressedTimeSpan, CompressedTimeSpan)
public static bool operator <(CompressedTimeSpan t1, CompressedTimeSpan t2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
LessThanOrEqual(CompressedTimeSpan, CompressedTimeSpan)
public static bool operator <=(CompressedTimeSpan t1, CompressedTimeSpan t2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Multiply(CompressedTimeSpan, Int32)
public static CompressedTimeSpan operator *(CompressedTimeSpan t1, int factor)
Parameters
Returns
Multiply(CompressedTimeSpan, Single)
public static CompressedTimeSpan operator *(CompressedTimeSpan t1, float factor)
Parameters
Returns
Subtraction(CompressedTimeSpan, CompressedTimeSpan)
public static CompressedTimeSpan operator -(CompressedTimeSpan t1, CompressedTimeSpan t2)
Parameters
Returns
Extension Methods