My ECE 2035 final project
Dependencies: 4DGL-uLCD-SE mbed wave_player
Fork of MazeRunner_Fall2017-shell by
math_extra.h
- Committer:
- rconnorlawson
- Date:
- 2017-11-08
- Revision:
- 2:c18c231cb299
- Parent:
- 0:cf4396614a79
- Child:
- 1:2c6ae0fe9a2a
File content as of revision 2:c18c231cb299:
#pragma once // True if lower < x < upper int in_range(int x, int lower, int upper); // Clamps the value of x to the range [-limit, limit] float clamp(float x, float limit); // Returns the sign of x (-1, 0, or 1). int sgn(float x); // Returns either -1.0 or 1.0, randomly float coin_flip();