Provides a collection of mathematical utility functions and constants.
Defines the Quaternion class for 3D rotations and transformations.
Defines a 3D vector and various related operations.
Implements a generic Kalman Filter for 1D data.
Represents an RGB color and provides methods for manipulation.
String ToString()
Converts the RGBColor to a string representation.
uint16_t color
Encoded 16-bit RGB565 color value.
RGBColor()
Default constructor initializes the color to black (0, 0, 0).
RGBColor HueShift(const float &hueDeg)
Shifts the hue of the color by a specified angle in degrees.
void SetColor(const uint8_t &R, const uint8_t &G, const uint8_t &B)
Sets the RGB values of the color.
RGBColor Scale(const uint8_t &maxBrightness)
Scales the brightness of the color to a maximum value.
static RGBColor InterpolateColors(const RGBColor &a, const RGBColor &b, const float &ratio)
Interpolates between two colors based on a ratio.
uint8_t B
Blue component of the color (0-255).
uint8_t G
Green component of the color (0-255).
RGBColor Add(const uint8_t &value)
Adds a value to each RGB component of the color.
uint8_t R
Red component of the color (0-255).
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.