#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 |
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 209 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 219 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 189 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 211 of file point.h.
Referenced by impeller::TPoint< Type >::AngleTo(), and impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 213 of file point.h.
Referenced by impeller::TPoint< Type >::AngleTo(), impeller::QuadraticPathComponent::FillPointsForPolyline(), impeller::TPoint< Type >::Reflect(), impeller::testing::TEST(), and impeller::CubicPathComponent::ToQuadraticPathComponents().
|
inlineconstexpr |
Definition at line 187 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 193 of file point.h.
Referenced by impeller::TPoint< Type >::GetLength(), and impeller::testing::TEST_P().
|
inlineconstexpr |
Definition at line 173 of file point.h.
Referenced by impeller::TPoint< Type >::GetDistance(), and impeller::TPoint< Type >::GetLengthSquared().
|
inlineconstexpr |
Definition at line 199 of file point.h.
Referenced by impeller::TPoint< Type >::Normalize(), and impeller::testing::TEST_P().
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 227 of file point.h.
Referenced by impeller::PathBuilder::RoundingRadii::AreAllZero(), impeller::DirectionalMorphologyFilterContents::SetDirection(), and impeller::DirectionalGaussianBlurFilterContents::SetDirection().
|
inlineconstexpr |
Definition at line 223 of file point.h.
Referenced by impeller::testing::TEST().
|
inlinestaticconstexpr |
|
inlineconstexpr |
Definition at line 183 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 179 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 201 of file point.h.
Referenced by impeller::DirectionalMorphologyFilterContents::SetDirection(), impeller::DirectionalGaussianBlurFilterContents::SetDirection(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
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 215 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
|
inlinestaticconstexpr |
| Type impeller::TPoint< T >::x = {} |
Definition at line 23 of file point.h.
Referenced by impeller::TPoint< Type >::Abs(), impeller::PathBuilder::AddArc(), impeller::PathBuilder::AddCircle(), impeller::PathBuilder::AddOval(), impeller::PathBuilder::AddRoundedRect(), impeller::TPoint< Type >::Ceil(), impeller::TRect< Scalar >::Contains(), impeller::TPoint< Type >::Cross(), impeller::TPoint< Type >::Dot(), impeller::DrawGlyph(), impeller::Canvas::DrawImage(), impeller::BlitCopyTextureToTextureCommandGLES::Encode(), impeller::BlitCopyTextureToTextureCommandMTL::Encode(), impeller::BlitCopyTextureToTextureCommandVK::Encode(), impeller::BlitCopyTextureToBufferCommandGLES::Encode(), impeller::BlitCopyTextureToBufferCommandMTL::Encode(), impeller::BlitCopyTextureToBufferCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandMTL::Encode(), impeller::TRect< Scalar >::Expand(), impeller::CubicPathComponent::Extrema(), impeller::TPoint< Type >::Floor(), impeller::PlaygroundImpl::GetContentScale(), impeller::TPoint< Type >::GetDistanceSquared(), impeller::TRect< Scalar >::GetLeft(), impeller::BitmapSTB::GetPixelAddress(), impeller::TRect< Scalar >::GetRight(), impeller::PathBuilder::HorizontalLineTo(), impeller::TPoint< Type >::IsZero(), impeller::Matrix::MakeScale(), impeller::testing::MetalScreenshoter::MakeScreenshot(), impeller::MakeTextFrameFromTextBlobSkia(), impeller::TPoint< Type >::MakeXY(), impeller::TPoint< Type >::Max(), impeller::TPoint< Type >::Min(), impeller::TPoint< Type >::Normalize(), impeller::TPoint< Type >::operator!=(), impeller::AtlasBlenderKey::Hash::operator()(), impeller::TRect< Scalar >::operator*(), impeller::TPoint< Type >::operator*(), impeller::operator*(), impeller::Matrix::operator*(), impeller::TPoint< Type >::operator*=(), impeller::TRect< Scalar >::operator+(), impeller::TPoint< Type >::operator+(), impeller::operator+(), impeller::TPoint< Type >::operator+=(), impeller::TRect< Scalar >::operator-(), impeller::TPoint< Type >::operator-(), impeller::operator-(), impeller::TPoint< Type >::operator-=(), impeller::TPoint< Type >::operator/(), impeller::operator/(), impeller::TPoint< Type >::operator/=(), std::operator<<(), impeller::TPoint< Type >::operator==(), PointNear(), RectNear(), impeller::TextContents::Render(), impeller::TPoint< Type >::Round(), impeller::TRect< Scalar >::Scale(), impeller::PassBindingsCache::SetScissor(), impeller::PassBindingsCache::SetViewport(), impeller::TRect< Scalar >::Shift(), impeller::LinearPathComponent::Solve(), impeller::QuadraticPathComponent::Solve(), impeller::CubicPathComponent::Solve(), impeller::QuadraticPathComponent::SolveDerivative(), impeller::CubicPathComponent::SolveDerivative(), 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 24 of file point.h.
Referenced by impeller::TPoint< Type >::Abs(), impeller::PathBuilder::AddArc(), impeller::PathBuilder::AddCircle(), impeller::PathBuilder::AddOval(), impeller::PathBuilder::AddRoundedRect(), impeller::TPoint< Type >::Ceil(), impeller::TRect< Scalar >::Contains(), impeller::TPoint< Type >::Cross(), impeller::TPoint< Type >::Dot(), impeller::DrawGlyph(), impeller::Canvas::DrawImage(), impeller::BlitCopyTextureToTextureCommandGLES::Encode(), impeller::BlitCopyTextureToTextureCommandMTL::Encode(), impeller::BlitCopyTextureToTextureCommandVK::Encode(), impeller::BlitCopyTextureToBufferCommandGLES::Encode(), impeller::BlitCopyTextureToBufferCommandMTL::Encode(), impeller::BlitCopyTextureToBufferCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandMTL::Encode(), impeller::TRect< Scalar >::Expand(), impeller::CubicPathComponent::Extrema(), impeller::TPoint< Type >::Floor(), impeller::TRect< Scalar >::GetBottom(), impeller::PlaygroundImpl::GetContentScale(), impeller::TPoint< Type >::GetDistanceSquared(), impeller::BitmapSTB::GetPixelAddress(), impeller::TRect< Scalar >::GetTop(), impeller::PathBuilder::HorizontalLineTo(), impeller::TPoint< Type >::IsZero(), impeller::Matrix::MakeScale(), impeller::testing::MetalScreenshoter::MakeScreenshot(), impeller::TPoint< Type >::MakeXY(), impeller::TPoint< Type >::Max(), impeller::TPoint< Type >::Min(), impeller::TPoint< Type >::Normalize(), impeller::TPoint< Type >::operator!=(), impeller::AtlasBlenderKey::Hash::operator()(), impeller::TRect< Scalar >::operator*(), impeller::TPoint< Type >::operator*(), impeller::operator*(), impeller::Matrix::operator*(), impeller::TPoint< Type >::operator*=(), impeller::TRect< Scalar >::operator+(), impeller::TPoint< Type >::operator+(), impeller::operator+(), impeller::TPoint< Type >::operator+=(), impeller::TRect< Scalar >::operator-(), impeller::TPoint< Type >::operator-(), impeller::operator-(), impeller::TPoint< Type >::operator-=(), impeller::TPoint< Type >::operator/(), impeller::operator/(), impeller::TPoint< Type >::operator/=(), std::operator<<(), impeller::TPoint< Type >::operator==(), PointNear(), RectNear(), impeller::TextContents::Render(), impeller::TPoint< Type >::Round(), impeller::TRect< Scalar >::Scale(), impeller::PassBindingsCache::SetScissor(), impeller::PassBindingsCache::SetViewport(), impeller::TRect< Scalar >::Shift(), impeller::LinearPathComponent::Solve(), impeller::QuadraticPathComponent::Solve(), impeller::CubicPathComponent::Solve(), impeller::QuadraticPathComponent::SolveDerivative(), impeller::CubicPathComponent::SolveDerivative(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::scene::importer::ToFBVec2(), impeller::skia_conversions::ToPath(), impeller::Matrix::TransformDirection(), and impeller::PathBuilder::VerticalLineTo().