36 requires std::totally_ordered<T>
37 static T
Clamp(
const T &value,
const T &min,
const T &max) {
38 return qBound(min, value, max);
49 static std::vector<QPointF>
GenerateCircularPoints(
const QPointF ¢er,
double radius,
int num_of_points);
Provides static utility functions for mathematical operations related to the Blob animation.
Definition blob_math.h:15
static QPointF CalculateBezierControlPoint(const QPointF &p0, const QPointF &p1, const QPointF &p2, float tension)
Calculates a control point for a cubic Bezier segment, often used in Catmull-Rom splines....
Definition blob_math.cpp:42
static std::vector< QPointF > GenerateCircularPoints(const QPointF ¢er, double radius, int num_of_points)
Generates a specified number of points approximately distributed on a circle. Introduces slight rando...
Definition blob_math.cpp:21
static bool IsValidPoint(const QPointF &point)
Checks if a QPointF contains valid coordinate values. Verifies that coordinates are not NaN,...
Definition blob_math.cpp:7
static T Clamp(const T &value, const T &min, const T &max)
Clamps a value between a minimum and maximum limit. Requires the type T to be totally ordered (suppor...
Definition blob_math.h:37