Zappy GUI
C++ graphic client: renderer, camera, network
Loading...
Searching...
No Matches
BroadcastBehavior.cpp File Reference
#include "BroadcastBehavior.hpp"
#include <cmath>
#include <cstdlib>
#include <vector>
+ Include dependency graph for BroadcastBehavior.cpp:

Go to the source code of this file.

Functions

static float frand ()
 
static float wrapCoord (float val, float half)
 

Variables

static constexpr float RING_Y = 0.05f
 
static constexpr float JITTER_RANGE = 0.08f
 

Function Documentation

◆ frand()

static float frand ( )
inlinestatic

Definition at line 10 of file BroadcastBehavior.cpp.

Referenced by BroadcastBehavior::BroadcastBehavior(), and BroadcastBehavior::update().

+ Here is the caller graph for this function:

◆ wrapCoord()

static float wrapCoord ( float  val,
float  half 
)
static

Definition at line 47 of file BroadcastBehavior.cpp.

Referenced by BroadcastBehavior::update().

+ Here is the caller graph for this function:

Variable Documentation

◆ JITTER_RANGE

constexpr float JITTER_RANGE = 0.08f
staticconstexpr

Definition at line 8 of file BroadcastBehavior.cpp.

Referenced by BroadcastBehavior::BroadcastBehavior().

◆ RING_Y

constexpr float RING_Y = 0.05f
staticconstexpr

Definition at line 7 of file BroadcastBehavior.cpp.

Referenced by BroadcastBehavior::update().