Struct Binary.Segment.Interval
Denotes a sequence of animation frames
Namespace: Unity.Kinematica
Syntax
public struct Interval
Fields
firstFrame
Denotes the first frame of the interval.
Declaration
public int firstFrame
Field Value
Type | Description |
---|---|
Int32 |
numFrames
Denotes the number of frames for the interval.
Declaration
public int numFrames
Field Value
Type | Description |
---|---|
Int32 |
Properties
FirstFrame
Denotes the first frame of the interval.
Declaration
public int FirstFrame { get; }
Property Value
Type | Description |
---|---|
Int32 |
NumFrames
Denotes the number of frames for the interval.
Declaration
public int NumFrames { get; }
Property Value
Type | Description |
---|---|
Int32 |
OnePastLastFrame
Denotes the one-past-last frame of the interval.
Declaration
public int OnePastLastFrame { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
Contains(Int32)
Determines whether or not the given frame is contained in the interval.
Declaration
public bool Contains(int frame)
Parameters
Type | Name | Description |
---|---|---|
Int32 | frame | An index to check the interval for. |
Returns
Type | Description |
---|---|
Boolean | True if the given index is contained in the interval; false otherwise. |