Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
scalar.h File Reference
#include <cfloat>
#include <type_traits>
#include <valarray>
#include "impeller/geometry/constants.h"

Go to the source code of this file.

Classes

struct  impeller::Radians
 
struct  impeller::Degrees
 

Namespaces

namespace  impeller
 

Typedefs

using impeller::Scalar = float
 

Functions

template<class T , class = std::enable_if_t<std::is_arithmetic_v<T>>>
constexpr T impeller::Absolute (const T &val)
 
constexpr bool impeller::ScalarNearlyZero (Scalar x, Scalar tolerance=kEhCloseEnough)
 
constexpr bool impeller::ScalarNearlyEqual (Scalar x, Scalar y, Scalar tolerance=kEhCloseEnough)