HPS::FloatKeyframe Struct Reference

Public Member Functions

 FloatKeyframe (uint32_t in_ticks, float in_value)
 
bool operator!= (FloatKeyframe const &in_that) const
 
bool operator== (FloatKeyframe const &in_that) const
 

Public Attributes

uint32_t time_in_ticks
 
float value
 

Constructor & Destructor Documentation

◆ FloatKeyframe()

HPS::FloatKeyframe::FloatKeyframe ( uint32_t  in_ticks,
float  in_value 
)

Creates a new FloatKeyframe, suitable for using with a FloatSampler object. The correspondence between real time and ticks can be controlled through AnimationControl::SetTimePerTick

Parameters
in_ticksThe time, specified in ticks, when this keyframe should be executed.
in_valueThe value of this keyframe at the specified time.

Member Function Documentation

◆ operator!=()

bool HPS::FloatKeyframe::operator!= ( FloatKeyframe const &  in_that) const

Check if the source FloatKeyframe is different from this FloatKeyframe.

Parameters
in_thatThe source FloatKeyframe to compare to this FloatKeyframe.
Returns
true if the objects are different, false otherwise.

◆ operator==()

bool HPS::FloatKeyframe::operator== ( FloatKeyframe const &  in_that) const

Check if the source FloatKeyframe is equal to this FloatKeyframe.

Parameters
in_thatThe source FloatKeyframe to compare to this FloatKeyframe.
Returns
true if the objects are equal, false otherwise.

The documentation for this struct was generated from the following file: