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

This Util class hold the tools to exclude various axes in 2D space from tweening calculations More...

Public Types

enum  Axis
 Flag based enum representing 2D Axis
 

Static Public Member Functions

static Axis GetOnlyIncludeAxes (Axis inclAxis)
 Returns a Axis which only contains the Axes which are not defined within the input More...
 
static Vector2 ApplyExcludeAxes (Vector2 original, Vector2 final, Axis excludeAxes)
 Resets the final result to the original Vector based on which Axes are to be excluded from the final calculation More...
 

Detailed Description

This Util class hold the tools to exclude various axes in 2D space from tweening calculations

Member Function Documentation

◆ ApplyExcludeAxes()

static Vector2 RaTweening.RaVector2Options.ApplyExcludeAxes ( Vector2  original,
Vector2  final,
Axis  excludeAxes 
)
static

Resets the final result to the original Vector based on which Axes are to be excluded from the final calculation

Parameters
originalThe original value
finalThe final value
excludeAxesThe axes which should be reset to the original value within the final value
Returns
The new final value

◆ GetOnlyIncludeAxes()

static Axis RaTweening.RaVector2Options.GetOnlyIncludeAxes ( Axis  inclAxis)
static

Returns a Axis which only contains the Axes which are not defined within the input

Parameters
inclAxesInput which Axes not to define
Returns
The value of all Axes excluding the input