Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorAnimation::Interpolate< QRectF > Struct Reference

#include <PhosphorAnimation/Interpolate.h>

Static Public Member Functions

static QRectF lerp (const QRectF &from, const QRectF &to, qreal t)
static qreal distance (const QRectF &from, const QRectF &to)
 4-D Euclidean norm over (x, y, w, h).
static bool isFinite (const QRectF &r)

Static Public Attributes

static constexpr qreal retargetEpsilon = 0.5

Member Function Documentation

◆ distance()

qreal PhosphorAnimation::Interpolate< QRectF >::distance ( const QRectF & from,
const QRectF & to )
inlinestatic

4-D Euclidean norm over (x, y, w, h).

Conflates position-pixels and size-pixels — fine for position-dominated snap; size-dominated consumers should use PreservePosition or split into separate AnimatedValues.

◆ isFinite()

bool PhosphorAnimation::Interpolate< QRectF >::isFinite ( const QRectF & r)
inlinestatic

◆ lerp()

QRectF PhosphorAnimation::Interpolate< QRectF >::lerp ( const QRectF & from,
const QRectF & to,
qreal t )
inlinestatic

Member Data Documentation

◆ retargetEpsilon

qreal PhosphorAnimation::Interpolate< QRectF >::retargetEpsilon = 0.5
staticconstexpr

The documentation for this struct was generated from the following file: