Class ICaptureExtensions
Inheritance
Inherited Members
Namespace: Recolude.Core
Assembly: Recolude.Core.dll
Syntax
public static class ICaptureExtensions
Methods
FallsWithin(ICapture, Single, Single)
Figure out if the captured event occurs within the time slice provided. The range is inclusive [start, end]. If the range is provided backwards such that the start of the timeslice occurs after the end (start > end), then the values are automatically flipped and the function continues.
Declaration
public static bool FallsWithin(this ICapture capture, float start, float end)
Parameters
Type | Name | Description |
---|---|---|
ICapture | capture | |
System.Single | start | The start of the timeslice. |
System.Single | end | The end of the timeslice. |
Returns
Type | Description |
---|---|
System.Boolean | Whether or not the event occurs within the timeslice. |
FallsWithin(ICapture, Vector2)
Figure out if the captured event occurs within the time slice provided. The range is inclusive [timeSlice.x, timeSlice.y]. If the range is provided backwards such that the start of the timeslice occurs after the end (timeSlice.x > timeSlice.y), then the values are automatically flipped and the function continues.
Declaration
public static bool FallsWithin(this ICapture capture, Vector2 timeSlice)
Parameters
Type | Name | Description |
---|---|---|
ICapture | capture | |
UnityEngine.Vector2 | timeSlice | The timeslice where the x component is the start and the y component is the end. |
Returns
Type | Description |
---|---|
System.Boolean | Whether or not the event occurs within the timeslice |