133 a.
R * (1.0f - ratio) + b.
R * ratio,
134 a.
G * (1.0f - ratio) + b.
G * ratio,
135 a.
B * (1.0f - ratio) + b.
B * ratio
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.
static const float MPI
Mathematical constant (3.14159265358979323846...).
static T Constrain(T value, T minimum, T maximum)
Constrains a value between minimum and maximum.
A mathematical construct representing a rotation in 3D space.
Represents an RGB color and provides methods for manipulation.
String ToString()
Converts the RGBColor to a string representation.
static RGBColor InterpolateColors(RGBColor a, RGBColor b, float ratio)
Interpolates between two colors based on a ratio.
uint16_t color
Encoded 16-bit RGB565 color value.
RGBColor()
Default constructor initializes the color to black (0, 0, 0).
void SetColor(uint8_t R, uint8_t G, uint8_t B)
Sets the RGB values of the color.
uint8_t B
Blue component of the color (0-255).
RGBColor(Vector3D color)
Constructor to initialize RGBColor from a Vector3D.
RGBColor(uint8_t R, uint8_t G, uint8_t B)
Constructor to initialize RGBColor with specified R, G, and B values.
uint8_t G
Green component of the color (0-255).
RGBColor HueShift(float hueDeg)
Shifts the hue of the color by a specified angle in degrees.
RGBColor(const RGBColor &rgbColor)
Copy constructor.
RGBColor Add(uint8_t value)
Adds a value to each RGB component of the color.
uint8_t R
Red component of the color (0-255).
RGBColor Scale(uint8_t maxBrightness)
Scales the brightness of the color to a maximum value.
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.
float Z
The Z-component of the 3D vector.
float X
The X-component of the 3D vector.
float Y
The Y-component of the 3D vector.