Definition at line 664 of file MotionMarkSlide.cpp.
◆ BouncingParticle()
BouncingParticle::BouncingParticle |
( |
SkRandom * |
random, |
|
|
SkSize |
stageSize, |
|
|
SkSize |
particleSize, |
|
|
float |
maxVelocity |
|
) |
| |
|
inline |
Definition at line 666 of file MotionMarkSlide.cpp.
668 ,
fSize(particleSize)
675 }
SkPoint random_position(SkRandom *random, SkSize maxPosition)
Rotater random_rotater(SkRandom *random)
float random_angle(SkRandom *random)
float random_velocity(SkRandom *random, float maxVelocity)
◆ animate()
void BouncingParticle::animate |
( |
double |
deltaNanos | ) |
|
|
inlineoverridevirtual |
Implements MMObject.
Reimplemented in BouncingTaggedImage.
Definition at line 677 of file MotionMarkSlide.cpp.
677 {
678
679 constexpr double kMillisPerNano = 0.0000001;
682
683
685
688
691
693 }
694
695
697
700
703
705 }
706
707
709
712
714 }
715
716
718
721
723 }
724 }
SkPoint point_on_circle(float angle, float radius)
constexpr float SK_FloatPI
void next(float timeDelta)
◆ fAngle
float BouncingParticle::fAngle |
|
protected |
◆ fPosition
SkPoint BouncingParticle::fPosition |
|
protected |
◆ fRotater
◆ fSize
SkSize BouncingParticle::fSize |
|
protected |
◆ fStageSize
SkSize BouncingParticle::fStageSize |
|
protected |
◆ fVelocity
float BouncingParticle::fVelocity |
|
protected |
The documentation for this class was generated from the following file: