|
Krita Source Code Documentation
|
#include <KisBezierPatchParamSpaceUtils.h>
Public Member Functions | |
| bool | contains (qreal value) const |
| std::optional< qreal > | forwardDistanceTo (const Range &rhs) |
| bool | isEmpty () const |
| qreal | length () const |
| qreal | mid () const |
| Range | squeezedRange (const Range &alphaRange) const |
| void | squeezeRange (const Range &alphaRange) |
Static Public Member Functions | |
| static Range | fromRectX (const QRectF &rc) |
| static Range | fromRectY (const QRectF &rc) |
| static QRectF | makeRectF (const Range &xRange, const Range &yRange) |
Public Attributes | |
| qreal | end = 0.0 |
| qreal | start = 0.0 |
A simple class representing a floating-point range on \R.
Definition at line 22 of file KisBezierPatchParamSpaceUtils.h.
|
inline |
Definition at line 39 of file KisBezierPatchParamSpaceUtils.h.
References qFuzzyCompare(), start, and value().
|
inline |
Returns the "forward distance" between *this and rhs. The forward distance is undefined if the ranges overlap.
*this is placed to the left of rhs, then the distance between the ranges is returned (always positive)*this is placed to the right of rhs, then the function returns the distance between the ranges taken with minus sign (always negative) Definition at line 73 of file KisBezierPatchParamSpaceUtils.h.
|
inlinestatic |
Definition at line 83 of file KisBezierPatchParamSpaceUtils.h.
|
inlinestatic |
Definition at line 87 of file KisBezierPatchParamSpaceUtils.h.
|
inline |
Definition at line 27 of file KisBezierPatchParamSpaceUtils.h.
References qFuzzyCompare(), and start.
|
inline |
Definition at line 31 of file KisBezierPatchParamSpaceUtils.h.
References start.
|
inlinestatic |
Definition at line 91 of file KisBezierPatchParamSpaceUtils.h.
|
inline |
Definition at line 35 of file KisBezierPatchParamSpaceUtils.h.
References start.
Narrow down the range by applying a relative range to it. Both ends are moved using lerp operation over the source range.
Definition at line 49 of file KisBezierPatchParamSpaceUtils.h.
References end, KisAlgebra2D::lerp(), lerp(), and start.
Definition at line 54 of file KisBezierPatchParamSpaceUtils.h.
References squeezedRange().
| qreal KisBezierUtils::Range::end = 0.0 |
Definition at line 25 of file KisBezierPatchParamSpaceUtils.h.
| qreal KisBezierUtils::Range::start = 0.0 |
Definition at line 24 of file KisBezierPatchParamSpaceUtils.h.