#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 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 = {} |
using impeller::TPoint< T >::Type = T |
|
constexprdefault |
|
inlineexplicitconstexpr |
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 216 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 226 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 196 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 218 of file point.h.
Referenced by impeller::TPoint< Scalar >::AngleTo(), and impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 220 of file point.h.
Referenced by impeller::TPoint< Scalar >::AngleTo(), impeller::TPoint< Scalar >::Reflect(), impeller::testing::TEST(), impeller::QuadraticPathComponent::ToLinearPathComponents(), and impeller::CubicPathComponent::ToLinearPathComponents().
|
inlineconstexpr |
Definition at line 194 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 200 of file point.h.
Referenced by impeller::DrawPlaygroundPoint(), impeller::TPoint< Scalar >::GetLength(), and impeller::testing::TEST_P().
|
inlineconstexpr |
Definition at line 180 of file point.h.
Referenced by impeller::TPoint< Scalar >::GetDistance(), and impeller::TPoint< Scalar >::GetLengthSquared().
|
inlineconstexpr |
Definition at line 206 of file point.h.
Referenced by impeller::TPoint< Scalar >::Normalize(), impeller::Tessellator::RoundCapLine(), and impeller::testing::TEST().
|
inlineconstexpr |
|
inline |
|
inlineconstexpr |
Definition at line 234 of file point.h.
Referenced by impeller::PathBuilder::RoundingRadii::AreAllZero(), and impeller::DirectionalMorphologyFilterContents::SetDirection().
|
inlineconstexpr |
Definition at line 230 of file point.h.
Referenced by impeller::testing::TEST().
|
inlinestaticconstexpr |
|
inlineconstexpr |
Definition at line 190 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 186 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 208 of file point.h.
Referenced by impeller::DirectionalMorphologyFilterContents::SetDirection(), and impeller::testing::TEST().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 222 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
|
inlinestaticconstexpr |
Type impeller::TPoint< T >::x = {} |
Definition at line 30 of file point.h.
Referenced by impeller::TPoint< Scalar >::Abs(), impeller::PathBuilder::AddArc(), impeller::PathBuilder::AddCircle(), impeller::PathBuilder::AddOval(), impeller::PathBuilder::AddRoundedRect(), impeller::TPoint< Scalar >::Ceil(), impeller::TRect< Scalar >::Contains(), impeller::TPoint< Scalar >::Cross(), impeller::TPoint< Scalar >::Dot(), impeller::DrawPlaygroundPoint(), impeller::BlitCopyTextureToTextureCommandGLES::Encode(), impeller::BlitCopyTextureToTextureCommandMTL::Encode(), impeller::BlitCopyTextureToTextureCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandMTL::Encode(), impeller::TRect< Scalar >::Expand(), impeller::CubicPathComponent::Extrema(), impeller::TPoint< Scalar >::Floor(), impeller::TPoint< Scalar >::GetDistanceSquared(), impeller::GaussianBlurFilterContents::GetFilterCoverage(), impeller::GaussianBlurFilterContents::GetFilterSourceCoverage(), impeller::BitmapSTB::GetPixelAddress(), impeller::PathBuilder::HorizontalLineTo(), impeller::LineGeometry::IsAxisAlignedRect(), impeller::TPoint< Scalar >::IsFinite(), impeller::TPoint< Scalar >::IsZero(), impeller::TRect< Scalar >::MakeOriginSize(), impeller::Matrix::MakeScale(), impeller::testing::MetalScreenshotter::MakeScreenshot(), impeller::testing::VulkanScreenshotter::MakeScreenshot(), impeller::MakeTextFrameFromTextBlobSkia(), impeller::TPoint< Scalar >::MakeXY(), impeller::TPoint< Scalar >::Max(), impeller::TPoint< Scalar >::Min(), impeller::TPoint< Scalar >::Normalize(), impeller::TPoint< Scalar >::operator!=(), impeller::TPoint< Scalar >::operator*(), impeller::operator*(), impeller::Matrix::operator*(), impeller::TPoint< Scalar >::operator*=(), impeller::TPoint< Scalar >::operator+(), impeller::operator+(), impeller::TPoint< Scalar >::operator+=(), impeller::TPoint< Scalar >::operator-(), impeller::operator-(), impeller::TPoint< Scalar >::operator-=(), impeller::TPoint< Scalar >::operator/(), impeller::operator/(), impeller::TPoint< Scalar >::operator/=(), std::operator<<(), impeller::TPoint< Scalar >::operator==(), PointNear(), impeller::TPoint< Scalar >::Round(), impeller::LinearPathComponent::Solve(), impeller::QuadraticPathComponent::Solve(), impeller::CubicPathComponent::Solve(), impeller::QuadraticPathComponent::SolveDerivative(), impeller::CubicPathComponent::SolveDerivative(), impeller::testing::swap_nan(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::scene::importer::ToFBVec2(), impeller::skia_conversions::ToPath(), impeller::Matrix::TransformDirection(), and impeller::PathBuilder::VerticalLineTo().
Type impeller::TPoint< T >::y = {} |
Definition at line 31 of file point.h.
Referenced by impeller::TPoint< Scalar >::Abs(), impeller::PathBuilder::AddArc(), impeller::PathBuilder::AddCircle(), impeller::PathBuilder::AddOval(), impeller::PathBuilder::AddRoundedRect(), impeller::TPoint< Scalar >::Ceil(), impeller::TRect< Scalar >::Contains(), impeller::TPoint< Scalar >::Cross(), impeller::TPoint< Scalar >::Dot(), impeller::DrawPlaygroundPoint(), impeller::BlitCopyTextureToTextureCommandGLES::Encode(), impeller::BlitCopyTextureToTextureCommandMTL::Encode(), impeller::BlitCopyTextureToTextureCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandMTL::Encode(), impeller::TRect< Scalar >::Expand(), impeller::CubicPathComponent::Extrema(), impeller::TPoint< Scalar >::Floor(), impeller::TPoint< Scalar >::GetDistanceSquared(), impeller::GaussianBlurFilterContents::GetFilterCoverage(), impeller::GaussianBlurFilterContents::GetFilterSourceCoverage(), impeller::BitmapSTB::GetPixelAddress(), impeller::PathBuilder::HorizontalLineTo(), impeller::LineGeometry::IsAxisAlignedRect(), impeller::TPoint< Scalar >::IsFinite(), impeller::TPoint< Scalar >::IsZero(), impeller::TRect< Scalar >::MakeOriginSize(), impeller::Matrix::MakeScale(), impeller::testing::MetalScreenshotter::MakeScreenshot(), impeller::testing::VulkanScreenshotter::MakeScreenshot(), impeller::TPoint< Scalar >::MakeXY(), impeller::TPoint< Scalar >::Max(), impeller::TPoint< Scalar >::Min(), impeller::TPoint< Scalar >::Normalize(), impeller::TPoint< Scalar >::operator!=(), impeller::TPoint< Scalar >::operator*(), impeller::operator*(), impeller::Matrix::operator*(), impeller::TPoint< Scalar >::operator*=(), impeller::TPoint< Scalar >::operator+(), impeller::operator+(), impeller::TPoint< Scalar >::operator+=(), impeller::TPoint< Scalar >::operator-(), impeller::operator-(), impeller::TPoint< Scalar >::operator-=(), impeller::TPoint< Scalar >::operator/(), impeller::operator/(), impeller::TPoint< Scalar >::operator/=(), std::operator<<(), impeller::TPoint< Scalar >::operator==(), PointNear(), impeller::TPoint< Scalar >::Round(), impeller::LinearPathComponent::Solve(), impeller::QuadraticPathComponent::Solve(), impeller::CubicPathComponent::Solve(), impeller::QuadraticPathComponent::SolveDerivative(), impeller::CubicPathComponent::SolveDerivative(), impeller::testing::swap_nan(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::scene::importer::ToFBVec2(), impeller::skia_conversions::ToPath(), impeller::Matrix::TransformDirection(), and impeller::PathBuilder::VerticalLineTo().