RaTweening 1.0.0
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
RaTweening.RaRectOptions Class Reference

This Util class hold the tools to exclude various Values of a Rect from tweening calculations More...

Public Types

enum  RectValue
 Flag based enum representing Rect Values
 

Static Public Member Functions

static RectValue GetOnlyIncludeRectValues (RectValue inclValues)
 Returns a RectValue which only contains the Rect Values which are not defined within the input More...
 
static Rect ApplyExcludeRectValues (Rect original, Rect final, RectValue excludeValues)
 Resets the final result to the original Rect based on which Rect Values are to be excluded from the final calculation More...
 

Detailed Description

This Util class hold the tools to exclude various Values of a Rect from tweening calculations

Member Function Documentation

◆ ApplyExcludeRectValues()

static Rect RaTweening.RaRectOptions.ApplyExcludeRectValues ( Rect  original,
Rect  final,
RectValue  excludeValues 
)
static

Resets the final result to the original Rect based on which Rect Values are to be excluded from the final calculation

Parameters
originalThe original value
finalThe final value
excludeValuesThe rect values which should be reset to the original value within the final value
Returns
The new final value

◆ GetOnlyIncludeRectValues()

static RectValue RaTweening.RaRectOptions.GetOnlyIncludeRectValues ( RectValue  inclValues)
static

Returns a RectValue which only contains the Rect Values which are not defined within the input

Parameters
inclValuesInput which Rect Values not to define
Returns
The value of all Rect Values excluding the input