Android-cuttlefish cvd tool
Classes | Functions | Variables
teeui::bits Namespace Reference

Classes

struct  silencer_t
 

Functions

template<typename T >
silencer_toperator<< (silencer_t &out, const T &)
 
long double abs (long double v)
 
double abs (double v)
 
long double ceil (long double v)
 
double ceil (double v)
 
long double floor (long double v)
 
double floor (double v)
 
long double sqrt (long double v)
 
double sqrt (double v)
 
float round (float v)
 
long double round (long double v)
 
double round (double v)
 
ssize_t intersect (const PxPoint *oBegin, const PxPoint *oEnd, const PxPoint &lineA, const PxPoint &lineB, PxPoint *nBegin, PxPoint *nEnd)
 
pxs area (const PxPoint *begin, const PxPoint *end)
 
template<typename VectorType >
VectorType rotate90 (const VectorType &in)
 

Variables

static silencer_t silencer
 
static constexpr const ssize_t kIntersectEmpty = -1
 
static constexpr const ssize_t kIntersectAllPositive = -2
 

Function Documentation

◆ abs() [1/2]

double teeui::bits::abs ( double  v)
inline

◆ abs() [2/2]

long double teeui::bits::abs ( long double  v)
inline

◆ area()

pxs teeui::bits::area ( const PxPoint begin,
const PxPoint end 
)

◆ ceil() [1/2]

double teeui::bits::ceil ( double  v)
inline

◆ ceil() [2/2]

long double teeui::bits::ceil ( long double  v)
inline

◆ floor() [1/2]

double teeui::bits::floor ( double  v)
inline

◆ floor() [2/2]

long double teeui::bits::floor ( long double  v)
inline

◆ intersect()

ssize_t teeui::bits::intersect ( const PxPoint oBegin,
const PxPoint oEnd,
const PxPoint lineA,
const PxPoint lineB,
PxPoint nBegin,
PxPoint nEnd 
)

◆ operator<<()

template<typename T >
silencer_t & teeui::bits::operator<< ( silencer_t out,
const T &   
)

◆ rotate90()

template<typename VectorType >
VectorType teeui::bits::rotate90 ( const VectorType &  in)
inline

◆ round() [1/3]

double teeui::bits::round ( double  v)
inline

◆ round() [2/3]

float teeui::bits::round ( float  v)
inline

◆ round() [3/3]

long double teeui::bits::round ( long double  v)
inline

◆ sqrt() [1/2]

double teeui::bits::sqrt ( double  v)
inline

◆ sqrt() [2/2]

long double teeui::bits::sqrt ( long double  v)
inline

Variable Documentation

◆ kIntersectAllPositive

constexpr const ssize_t teeui::bits::kIntersectAllPositive = -2
staticconstexpr

Returned by the intersect if the object is in the positive half plane of the given line.

◆ kIntersectEmpty

constexpr const ssize_t teeui::bits::kIntersectEmpty = -1
staticconstexpr

◆ silencer

silencer_t teeui::bits::silencer
static