#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.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 232 of file point.h.
Referenced by impeller::SeparatedVector2::AngleTo(), and 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::SeparatedVector2::GetAlignment(), impeller::TPoint< Scalar >::Reflect(), and impeller::testing::TEST().
|
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 240 of file point.h.
Referenced by impeller::PathBuilder::RoundingRadii::AreAllZero(), and impeller::DirectionalMorphologyFilterContents::SetDirection().
|
inlineconstexpr |
Definition at line 236 of file point.h.
Referenced by impeller::testing::TEST().
|
inlinestaticconstexpr |
|
inlineconstexpr |
Definition at line 190 of file point.h.
Referenced by impeller::ComputeCubicSubdivisions(), and 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 |
Definition at line 226 of file point.h.
Referenced by impeller::testing::TEST(), and flutter::testing::TEST_P().
|
inlineconstexpr |
|
inlinestaticconstexpr |
Definition at line 49 of file point.h.
Referenced by impeller::TextContents::Render(), and impeller::testing::TEST().
| 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::testing::CanRenderConicalGradientWithDithering(), impeller::testing::CanRenderSweepGradientWithDithering(), impeller::TPoint< Scalar >::Ceil(), impeller::TextFrame::ComputeSubpixelPosition(), impeller::TRect< Scalar >::Contains(), impeller::TRect< Scalar >::ContainsInclusive(), impeller::Paint::MaskBlurDescriptor::CreateMaskBlur(), impeller::TPoint< Scalar >::Cross(), impeller::TPoint< Scalar >::Dot(), impeller::DrawGlyph(), impeller::DrawPlaygroundPoint(), impeller::BlitCopyTextureToTextureCommandGLES::Encode(), impeller::TRect< Scalar >::Expand(), impeller::CubicPathComponent::Extrema(), impeller::TPoint< Scalar >::Floor(), impeller::TPoint< Scalar >::GetDistanceSquared(), impeller::GaussianBlurFilterContents::GetFilterSourceCoverage(), impeller::BitmapSTB::GetPixelAddress(), impeller::GaussianBlurFilterContents::GetSigmaX(), impeller::PathBuilder::HorizontalLineTo(), impeller::LineGeometry::IsAxisAlignedRect(), impeller::TPoint< Scalar >::IsFinite(), impeller::TPoint< Scalar >::IsZero(), impeller::TRect< Scalar >::MakeOriginSize(), impeller::Matrix::MakeRotation(), impeller::Matrix::MakeRotationX(), impeller::Matrix::MakeRotationY(), impeller::Matrix::MakeRotationZ(), 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!=(), std::hash< impeller::SubpixelGlyph >::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::TextContents::Render(), impeller::TPoint< Scalar >::Rotate(), 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(), flutter::testing::TEST_P(), impeller::testing::TEST_P(), impeller::scene::importer::ToFBVec2(), impeller::skia_conversions::ToPath(), impeller::Matrix::TransformDirection(), impeller::Matrix::TransformHomogenous(), 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::testing::CanRenderConicalGradientWithDithering(), impeller::testing::CanRenderSweepGradientWithDithering(), impeller::TPoint< Scalar >::Ceil(), impeller::TextFrame::ComputeSubpixelPosition(), impeller::TRect< Scalar >::Contains(), impeller::TRect< Scalar >::ContainsInclusive(), impeller::Paint::MaskBlurDescriptor::CreateMaskBlur(), impeller::TPoint< Scalar >::Cross(), impeller::TPoint< Scalar >::Dot(), impeller::DrawGlyph(), impeller::DrawPlaygroundPoint(), impeller::BlitCopyTextureToTextureCommandGLES::Encode(), impeller::TRect< Scalar >::Expand(), impeller::CubicPathComponent::Extrema(), impeller::TPoint< Scalar >::Floor(), impeller::TPoint< Scalar >::GetDistanceSquared(), impeller::GaussianBlurFilterContents::GetFilterSourceCoverage(), impeller::BitmapSTB::GetPixelAddress(), impeller::GaussianBlurFilterContents::GetSigmaY(), impeller::PathBuilder::HorizontalLineTo(), impeller::LineGeometry::IsAxisAlignedRect(), impeller::TPoint< Scalar >::IsFinite(), impeller::TPoint< Scalar >::IsZero(), impeller::TRect< Scalar >::MakeOriginSize(), impeller::Matrix::MakeRotation(), impeller::Matrix::MakeRotationX(), impeller::Matrix::MakeRotationY(), impeller::Matrix::MakeRotationZ(), 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!=(), std::hash< impeller::SubpixelGlyph >::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::TextContents::Render(), impeller::TPoint< Scalar >::Rotate(), 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(), flutter::testing::TEST_P(), impeller::testing::TEST_P(), impeller::scene::importer::ToFBVec2(), impeller::skia_conversions::ToPath(), impeller::Matrix::TransformDirection(), impeller::Matrix::TransformHomogenous(), and impeller::PathBuilder::VerticalLineTo().