Flutter Impeller
point.h File Reference
#include <algorithm>
#include <cmath>
#include <ostream>
#include <string>
#include <type_traits>
#include "impeller/geometry/scalar.h"
#include "impeller/geometry/size.h"
#include "impeller/geometry/type_traits.h"

Go to the source code of this file.

Classes

struct  impeller::TPoint< T >
 

Namespaces

 impeller
 
 std
 

Typedefs

using impeller::Point = TPoint< Scalar >
 
using impeller::IPoint = TPoint< int64_t >
 
using impeller::IPoint32 = TPoint< int32_t >
 
using impeller::UintPoint32 = TPoint< uint32_t >
 
using impeller::Vector2 = Point
 

Functions

template<class F , class I , class = MixedOp<F, I>>
constexpr TPoint< F > impeller::operator+ (const TPoint< F > &p1, const TPoint< I > &p2)
 
template<class F , class I , class = MixedOp<F, I>>
constexpr TPoint< F > impeller::operator+ (const TPoint< I > &p1, const TPoint< F > &p2)
 
template<class F , class I , class = MixedOp<F, I>>
constexpr TPoint< F > impeller::operator- (const TPoint< F > &p1, const TPoint< I > &p2)
 
template<class F , class I , class = MixedOp<F, I>>
constexpr TPoint< F > impeller::operator- (const TPoint< I > &p1, const TPoint< F > &p2)
 
template<class F , class I , class = MixedOp<F, I>>
constexpr TPoint< F > impeller::operator* (const TPoint< F > &p1, const TPoint< I > &p2)
 
template<class F , class I , class = MixedOp<F, I>>
constexpr TPoint< F > impeller::operator* (const TPoint< I > &p1, const TPoint< F > &p2)
 
template<class F , class I , class = MixedOp<F, I>>
constexpr TPoint< F > impeller::operator/ (const TPoint< F > &p1, const TPoint< I > &p2)
 
template<class F , class I , class = MixedOp<F, I>>
constexpr TPoint< F > impeller::operator/ (const TPoint< I > &p1, const TPoint< F > &p2)
 
template<class T , class U , class = std::enable_if_t<std::is_arithmetic_v<U>>>
constexpr TPoint< T > impeller::operator* (U s, const TPoint< T > &p)
 
template<class T , class U , class = std::enable_if_t<std::is_arithmetic_v<U>>>
constexpr TPoint< T > impeller::operator/ (U s, const TPoint< T > &p)
 
template<class T , class U >
constexpr TPoint< T > impeller::operator+ (const TSize< U > &s, const TPoint< T > &p)
 
template<class T , class U >
constexpr TPoint< T > impeller::operator- (const TSize< U > &s, const TPoint< T > &p)
 
template<class T , class U >
constexpr TPoint< T > impeller::operator* (const TSize< U > &s, const TPoint< T > &p)
 
template<class T , class U >
constexpr TPoint< T > impeller::operator/ (const TSize< U > &s, const TPoint< T > &p)
 
template<class T >
std::ostream & std::operator<< (std::ostream &out, const impeller::TPoint< T > &p)