FloatKeyframe

struct HPS::FloatKeyframe

Public Functions

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_ticks – The time, specified in ticks, when this keyframe should be executed.

  • in_value – The value of this keyframe at the specified time.

bool operator!=(FloatKeyframe const &in_that) const

Check if the source FloatKeyframe is different from this FloatKeyframe.

Parameters

in_that – The source FloatKeyframe to compare to this FloatKeyframe.

Returns

true if the objects are different, false otherwise.

bool operator==(FloatKeyframe const &in_that) const

Check if the source FloatKeyframe is equal to this FloatKeyframe.

Parameters

in_that – The source FloatKeyframe to compare to this FloatKeyframe.

Returns

true if the objects are equal, false otherwise.

Public Members

uint32_t time_in_ticks
float value