#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 = {} |
using impeller::TPoint< T >::Type = T |
|
constexprdefault |
|
inlineexplicitconstexpr |
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 216 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 232 of file point.h.
References impeller::TPoint< T >::Cross(), and impeller::TPoint< T >::Dot().
Referenced by impeller::SeparatedVector2::AngleTo(), and impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 196 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 218 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by impeller::TPoint< T >::AngleTo(), impeller::SeparatedVector2::Cross(), and impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 220 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by impeller::TPoint< T >::AngleTo(), impeller::ComputeConicSubdivisions(), impeller::SeparatedVector2::GetAlignment(), impeller::TPoint< T >::Reflect(), and impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 194 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 200 of file point.h.
References impeller::TPoint< T >::GetDistanceSquared().
Referenced by impeller::DashedLinePathSource::Dispatch(), impeller::Canvas::DrawDashedLine(), impeller::DrawPlaygroundPoint(), impeller::TPoint< T >::GetLength(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlineconstexpr |
Definition at line 180 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by impeller::TPoint< T >::GetDistance(), and impeller::TPoint< T >::GetLengthSquared().
|
inlineconstexpr |
Definition at line 206 of file point.h.
References impeller::TPoint< T >::GetDistance().
Referenced by impeller::LineContents::CalculatePerVertex(), impeller::LineGeometry::ComputeAlongVector(), impeller::TPoint< T >::Normalize(), impeller::Tessellator::RoundCapLine(), and impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 204 of file point.h.
References impeller::TPoint< T >::GetDistanceSquared().
Referenced by impeller::CornerContains().
|
inline |
Definition at line 243 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 240 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by impeller::DirectionalMorphologyFilterContents::SetDirection().
|
inlineconstexpr |
Definition at line 236 of file point.h.
Referenced by impeller::testing::TEST().
|
inlinestaticconstexpr |
Definition at line 46 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 190 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by impeller::ComputeConicSubdivisions(), impeller::ComputeCubicSubdivisions(), and impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 186 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by impeller::ComputeConicSubdivisions(), and impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 208 of file point.h.
References impeller::TPoint< T >::GetLength(), impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by impeller::DirectionalMorphologyFilterContents::SetDirection(), and impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 58 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 157 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 162 of file point.h.
References impeller::TSize< T >::height, impeller::TSize< T >::width, impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 153 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inline |
Definition at line 91 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inline |
Definition at line 98 of file point.h.
References impeller::TSize< T >::height, impeller::TSize< T >::width, impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inline |
Definition at line 105 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 134 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 139 of file point.h.
References impeller::TSize< T >::height, impeller::TSize< T >::width, impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inline |
Definition at line 63 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inline |
Definition at line 70 of file point.h.
References impeller::TSize< T >::height, impeller::TSize< T >::width, impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 132 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 143 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 148 of file point.h.
References impeller::TSize< T >::height, impeller::TSize< T >::width, impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inline |
Definition at line 77 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inline |
Definition at line 84 of file point.h.
References impeller::TSize< T >::height, impeller::TSize< T >::width, impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 171 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 176 of file point.h.
References impeller::TSize< T >::height, impeller::TSize< T >::width, impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 167 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inline |
Definition at line 112 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inline |
Definition at line 119 of file point.h.
References impeller::TSize< T >::height, impeller::TSize< T >::width, impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inline |
Definition at line 126 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 54 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlineconstexpr |
Definition at line 222 of file point.h.
References impeller::TPoint< T >::Dot().
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 226 of file point.h.
References impeller::Radians::radians, impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by impeller::testing::TEST(), impeller::testing::TEST_P(), and flutter::testing::TEST_P().
|
inlineconstexpr |
Definition at line 198 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
inlinestaticconstexpr |
Definition at line 49 of file point.h.
References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by impeller::TextContents::ComputeVertexData(), and impeller::testing::TEST().
Type impeller::TPoint< T >::x = {} |
Definition at line 30 of file point.h.
Referenced by impeller::TPoint< T >::Abs(), impeller::LineContents::CalculatePerVertex(), impeller::testing::CanRenderConicalGradientWithDithering(), impeller::testing::CanRenderSweepGradientWithDithering(), impeller::TPoint< T >::Ceil(), impeller::TextFrame::ComputeSubpixelPosition(), impeller::TextContents::ComputeVertexData(), impeller::SolidRRectLikeBlurContents::Concat(), impeller::TRect< T >::Contains(), impeller::TRect< T >::ContainsInclusive(), impeller::CornerContains(), impeller::Paint::MaskBlurDescriptor::CreateMaskBlur(), impeller::TPoint< T >::Cross(), impeller::EllipsePathSource::Dispatch(), impeller::testing::DoGradientOvalStrokeMaskBlur(), impeller::TPoint< T >::Dot(), impeller::DrawGlyph(), impeller::interop::DisplayListBuilder::DrawParagraph(), impeller::DrawPlaygroundPoint(), impeller::eccentricity(), impeller::BlitCopyTextureToTextureCommandGLES::Encode(), impeller::TRect< T >::Expand(), impeller::TPoint< T >::Floor(), impeller::DashedLinePathSource::GetBounds(), impeller::PlaygroundImpl::GetContentScale(), impeller::PointFieldGeometry::GetCoverage(), impeller::TPoint< T >::GetDistanceSquared(), impeller::GaussianBlurFilterContents::GetFilterSourceCoverage(), impeller::GaussianBlurFilterContents::GetSigmaX(), impeller::TPoint< T >::IsFinite(), impeller::TPoint< T >::IsZero(), impeller::LerpHackKernelSamples(), impeller::RSTransform::Make(), impeller::TRect< T >::MakeOriginSize(), impeller::Matrix::MakeRotation(), impeller::Matrix::MakeRotationX(), impeller::Matrix::MakeRotationY(), impeller::Matrix::MakeRotationZ(), impeller::Matrix::MakeScale(), impeller::GoldenPlaygroundTest::MakeScreenshot(), impeller::MakeTextFrameFromTextBlobSkia(), impeller::TPoint< T >::MakeXY(), impeller::testing::MaskBlurVariantTest(), impeller::TPoint< T >::Max(), impeller::TPoint< T >::Min(), impeller::TPoint< T >::Normalize(), impeller::GoldenPlaygroundTest::OpenPlaygroundHere(), impeller::TPoint< T >::operator!=(), impeller::Matrix::operator*(), impeller::operator*(), impeller::Trig::operator*(), impeller::TPoint< T >::operator*(), impeller::TPoint< T >::operator*=(), impeller::TPoint< T >::operator+(), impeller::operator+(), impeller::TPoint< T >::operator+=(), impeller::TPoint< T >::operator-(), impeller::operator-(), impeller::TPoint< T >::operator-=(), impeller::operator/(), impeller::TPoint< T >::operator/(), impeller::TPoint< T >::operator/=(), std::operator<<(), impeller::TPoint< T >::operator==(), PointNear(), impeller::StrokePathSegmentReceiver::RecordArc(), impeller::SolidRRectLikeBlurContents::Render(), impeller::TPoint< T >::Rotate(), impeller::TPoint< T >::Round(), impeller::TRect< T >::Scale(), impeller::TRect< T >::Shift(), impeller::testing::swap_nan(), impeller::testing::TEST(), impeller::testing::TEST_P(), flutter::testing::TEST_P(), impeller::interop::ToSkiaType(), impeller::Matrix::TransformDirection(), impeller::Matrix::TransformHomogenous(), and impeller::interop::DisplayListBuilder::Translate().
Type impeller::TPoint< T >::y = {} |
Definition at line 31 of file point.h.
Referenced by impeller::TPoint< T >::Abs(), impeller::LineContents::CalculatePerVertex(), impeller::testing::CanRenderConicalGradientWithDithering(), impeller::testing::CanRenderSweepGradientWithDithering(), impeller::TPoint< T >::Ceil(), impeller::TextFrame::ComputeSubpixelPosition(), impeller::TextContents::ComputeVertexData(), impeller::SolidRRectLikeBlurContents::Concat(), impeller::TRect< T >::Contains(), impeller::TRect< T >::ContainsInclusive(), impeller::CornerContains(), impeller::Paint::MaskBlurDescriptor::CreateMaskBlur(), impeller::TPoint< T >::Cross(), impeller::EllipsePathSource::Dispatch(), impeller::testing::DoGradientOvalStrokeMaskBlur(), impeller::TPoint< T >::Dot(), impeller::DrawGlyph(), impeller::interop::DisplayListBuilder::DrawParagraph(), impeller::DrawPlaygroundPoint(), impeller::eccentricity(), impeller::BlitCopyTextureToTextureCommandGLES::Encode(), impeller::TRect< T >::Expand(), impeller::TPoint< T >::Floor(), impeller::DashedLinePathSource::GetBounds(), impeller::PlaygroundImpl::GetContentScale(), impeller::PointFieldGeometry::GetCoverage(), impeller::TPoint< T >::GetDistanceSquared(), impeller::GaussianBlurFilterContents::GetFilterSourceCoverage(), impeller::GaussianBlurFilterContents::GetSigmaY(), impeller::TPoint< T >::IsFinite(), impeller::TPoint< T >::IsZero(), impeller::LerpHackKernelSamples(), impeller::RSTransform::Make(), impeller::TRect< T >::MakeOriginSize(), impeller::Matrix::MakeRotation(), impeller::Matrix::MakeRotationX(), impeller::Matrix::MakeRotationY(), impeller::Matrix::MakeRotationZ(), impeller::Matrix::MakeScale(), impeller::GoldenPlaygroundTest::MakeScreenshot(), impeller::TPoint< T >::MakeXY(), impeller::testing::MaskBlurVariantTest(), impeller::TPoint< T >::Max(), impeller::TPoint< T >::Min(), impeller::TPoint< T >::Normalize(), impeller::GoldenPlaygroundTest::OpenPlaygroundHere(), impeller::TPoint< T >::operator!=(), impeller::Matrix::operator*(), impeller::operator*(), impeller::Trig::operator*(), impeller::TPoint< T >::operator*(), impeller::TPoint< T >::operator*=(), impeller::TPoint< T >::operator+(), impeller::operator+(), impeller::TPoint< T >::operator+=(), impeller::TPoint< T >::operator-(), impeller::operator-(), impeller::TPoint< T >::operator-=(), impeller::operator/(), impeller::TPoint< T >::operator/(), impeller::TPoint< T >::operator/=(), std::operator<<(), impeller::TPoint< T >::operator==(), PointNear(), impeller::StrokePathSegmentReceiver::RecordArc(), impeller::SolidRRectLikeBlurContents::Render(), impeller::TPoint< T >::Rotate(), impeller::TPoint< T >::Round(), impeller::TRect< T >::Scale(), impeller::TRect< T >::Shift(), impeller::testing::swap_nan(), impeller::testing::TEST(), impeller::testing::TEST_P(), flutter::testing::TEST_P(), impeller::interop::ToSkiaType(), impeller::Matrix::TransformDirection(), impeller::Matrix::TransformHomogenous(), and impeller::interop::DisplayListBuilder::Translate().