Loading...
Searching...
No Matches
realvirtual.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 realvirtual.ZeroOneTransition.Advance ( bool  active,
float  diff 
)

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

◆ Advance() [2/2]

float realvirtual.ZeroOneTransition.Advance ( float  diff)

Property Documentation

◆ Eased

float realvirtual.ZeroOneTransition.Eased
get

Identical to Mathf.SmoothStep( ).