Struct XrDuration
The difference between two timepoints is a duration, and thus the difference between two XrTime values is an XrDuration value.
Functions that refer to durations use XrDuration as opposed to XrTime.
Assembly: VIVE.OpenXR.dll
Syntax
public struct XrDuration : IEquatable<long>
Constructors
XrDuration(long)
Declaration
public XrDuration(long u)
Parameters
Type |
Name |
Description |
long |
u |
|
Methods
Equals(long)
Declaration
public bool Equals(long other)
Parameters
Type |
Name |
Description |
long |
other |
|
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
Equals(XrDuration)
Declaration
public bool Equals(XrDuration other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator +(XrDuration, XrDuration)
Declaration
public static XrDuration operator +(XrDuration a, XrDuration b)
Parameters
Returns
operator /(XrDuration, XrDuration)
Declaration
public static XrDuration operator /(XrDuration a, XrDuration b)
Parameters
Returns
operator ==(XrDuration, XrDuration)
Declaration
public static bool operator ==(XrDuration a, XrDuration b)
Parameters
Returns
operator >(XrDuration, XrDuration)
Declaration
public static bool operator >(XrDuration a, XrDuration b)
Parameters
Returns
operator >=(XrDuration, XrDuration)
Declaration
public static bool operator >=(XrDuration a, XrDuration b)
Parameters
Returns
implicit operator XrDuration(long)
Declaration
public static implicit operator XrDuration(long u)
Parameters
Type |
Name |
Description |
long |
u |
|
Returns
implicit operator long(XrDuration)
Declaration
public static implicit operator long(XrDuration equatable)
Parameters
Returns
operator !=(XrDuration, XrDuration)
Declaration
public static bool operator !=(XrDuration a, XrDuration b)
Parameters
Returns
operator <(XrDuration, XrDuration)
Declaration
public static bool operator <(XrDuration a, XrDuration b)
Parameters
Returns
operator <=(XrDuration, XrDuration)
Declaration
public static bool operator <=(XrDuration a, XrDuration b)
Parameters
Returns
operator *(XrDuration, XrDuration)
Declaration
public static XrDuration operator *(XrDuration a, XrDuration b)
Parameters
Returns
operator -(XrDuration, XrDuration)
Declaration
public static XrDuration operator -(XrDuration a, XrDuration b)
Parameters
Returns
Implements