Flutter Engine
The Flutter Engine
|
#include <point.h>
Public Types | |
using | Type = T |
Public Member Functions | |
constexpr | TPoint ()=default |
template<class U > | |
constexpr | TPoint (const TPoint< U > &other) |
template<class U > | |
constexpr | TPoint (const TSize< U > &other) |
constexpr | TPoint (Type x, Type y) |
constexpr bool | operator== (const TPoint &p) const |
constexpr bool | operator!= (const TPoint &p) const |
template<class U > | |
TPoint | operator+= (const TPoint< U > &p) |
template<class U > | |
TPoint | operator+= (const TSize< U > &s) |
template<class U > | |
TPoint | operator-= (const TPoint< U > &p) |
template<class U > | |
TPoint | operator-= (const TSize< U > &s) |
template<class U > | |
TPoint | operator*= (const TPoint< U > &p) |
template<class U > | |
TPoint | operator*= (const TSize< U > &s) |
template<class U , class = std::enable_if_t<std::is_arithmetic_v<U>>> | |
TPoint | operator*= (U scale) |
template<class U > | |
TPoint | operator/= (const TPoint< U > &p) |
template<class U > | |
TPoint | operator/= (const TSize< U > &s) |
template<class U , class = std::enable_if_t<std::is_arithmetic_v<U>>> | |
TPoint | operator/= (U scale) |
constexpr TPoint | operator- () const |
constexpr TPoint | operator+ (const TPoint &p) const |
template<class U > | |
constexpr TPoint | operator+ (const TSize< U > &s) const |
constexpr TPoint | operator- (const TPoint &p) const |
template<class U > | |
constexpr TPoint | operator- (const TSize< U > &s) const |
template<class U , class = std::enable_if_t<std::is_arithmetic_v<U>>> | |
constexpr TPoint | operator* (U scale) const |
constexpr TPoint | operator* (const TPoint &p) const |
template<class U > | |
constexpr TPoint | operator* (const TSize< U > &s) const |
template<class U , class = std::enable_if_t<std::is_arithmetic_v<U>>> | |
constexpr TPoint | operator/ (U d) const |
constexpr TPoint | operator/ (const TPoint &p) const |
template<class U > | |
constexpr TPoint | operator/ (const TSize< U > &s) const |
constexpr Type | GetDistanceSquared (const TPoint &p) const |
constexpr TPoint | Min (const TPoint &p) const |
constexpr TPoint | Max (const TPoint &p) const |
constexpr TPoint | Floor () const |
constexpr TPoint | Ceil () const |
constexpr TPoint | Round () const |
constexpr Type | GetDistance (const TPoint &p) const |
constexpr Type | GetLengthSquared () const |
constexpr Type | GetLength () const |
constexpr TPoint | Normalize () const |
constexpr TPoint | Abs () const |
constexpr Type | Cross (const TPoint &p) const |
constexpr Type | Dot (const TPoint &p) const |
constexpr TPoint | Reflect (const TPoint &axis) const |
constexpr TPoint | Rotate (const Radians &angle) const |
constexpr Radians | AngleTo (const TPoint &p) const |
constexpr TPoint | Lerp (const TPoint &p, Scalar t) const |
constexpr bool | IsZero () const |
IsFinite () const | |
Static Public Member Functions | |
static constexpr TPoint< Type > | MakeXY (Type x, Type y) |
template<class U > | |
static constexpr TPoint | Round (const TPoint< U > &other) |
Public Attributes | |
Type | x = {} |
Type | y = {} |
|
constexprdefault |
|
inlineexplicitconstexpr |
Definition at line 36 of file point.h.
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 206 of file point.h.
|
inlineconstexpr |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |