Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
Rotater Class Reference

Public Member Functions

 Rotater (float rotateInterval)
 
void next (float timeDelta)
 
float degrees ()
 

Detailed Description

Definition at line 637 of file MotionMarkSlide.cpp.

Constructor & Destructor Documentation

◆ Rotater()

Rotater::Rotater ( float  rotateInterval)
inline

Definition at line 639 of file MotionMarkSlide.cpp.

640 : fTimeDelta(0)
641 , fRotateInterval(rotateInterval) {}

Member Function Documentation

◆ degrees()

float Rotater::degrees ( )
inline

Definition at line 647 of file MotionMarkSlide.cpp.

647 {
648 return (360 * fTimeDelta) / fRotateInterval;
649 }

◆ next()

void Rotater::next ( float  timeDelta)
inline

Definition at line 643 of file MotionMarkSlide.cpp.

643 {
644 fTimeDelta = SkScalarMod(fTimeDelta + timeDelta, fRotateInterval);
645 }
#define SkScalarMod(x, y)
Definition: SkScalar.h:41

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