tiny-skia-cpp
A C++20 2D rendering library (port of tiny-skia)
Loading...
Searching...
No Matches
tiny_skia::NormalizedF32 Class Reference

A float guaranteed to be in [0, 1].

#include <tiny_skia/FloatingPoint.h>

Collaboration diagram for tiny_skia::NormalizedF32:

Static Public Member Functions

static std::optional< NormalizedF32create (float value)
 Returns nullopt if outside [0,1] or non-finite.
 
static NormalizedF32 newClamped (float value)
 Clamps to [0,1].
 

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