game4automation.ZeroOneTransition Struct Reference

Public Member Functions

 ZeroOneTransition (float t)
 
bool Advance (bool active, float diff)
 Advance the transition by the specified value. More...
 
float Advance (float diff)
 Advance the transition by the specified value. More...
 
float SmoothStep (float from, float to)
 

Public Attributes

float Transition
 

Properties

float Eased [get]
 Return the eased transition. More...
 
float Squared [get]
 
float Sqrt [get]
 

Member Function Documentation

◆ Advance() [1/2]

bool game4automation.ZeroOneTransition.Advance ( bool  active,
float  diff 
)

If active is true the transition will be advanced towards 1. Otherwise to 0.

◆ Advance() [2/2]

float game4automation.ZeroOneTransition.Advance ( float  diff)

Property Documentation

◆ Eased

float game4automation.ZeroOneTransition.Eased
get

Identical to Mathf.SmoothStep( ).