#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 211 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 221 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 191 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 213 of file point.h.
Referenced by impeller::TPoint< Type >::AngleTo(), and impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 215 of file point.h.
Referenced by impeller::TPoint< Type >::AngleTo(), impeller::QuadraticPathComponent::AppendPolylinePoints(), impeller::TPoint< Type >::Reflect(), impeller::testing::TEST(), and impeller::CubicPathComponent::ToQuadraticPathComponents().
|
inlineconstexpr |
Definition at line 189 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 195 of file point.h.
Referenced by impeller::TPoint< Type >::GetLength(), and impeller::testing::TEST_P().
|
inlineconstexpr |
Definition at line 175 of file point.h.
Referenced by impeller::TPoint< Type >::GetDistance(), and impeller::TPoint< Type >::GetLengthSquared().
|
inlineconstexpr |
Definition at line 201 of file point.h.
Referenced by impeller::TPoint< Type >::Normalize(), impeller::Tessellator::RoundCapLine(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 229 of file point.h.
Referenced by impeller::PathBuilder::RoundingRadii::AreAllZero(), impeller::DirectionalMorphologyFilterContents::SetDirection(), and impeller::DirectionalGaussianBlurFilterContents::SetDirection().
|
inlineconstexpr |
Definition at line 225 of file point.h.
Referenced by impeller::testing::TEST().
|
inlinestaticconstexpr |
|
inlineconstexpr |
Definition at line 185 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 181 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
Definition at line 203 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 217 of file point.h.
Referenced by impeller::testing::TEST().
|
inlineconstexpr |
|
inlinestaticconstexpr |
| Type impeller::TPoint< T >::x = {} |
Definition at line 25 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::BlitCopyTextureToTextureCommandGLES::Encode(), impeller::BlitCopyTextureToTextureCommandMTL::Encode(), impeller::BlitCopyTextureToTextureCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandMTL::Encode(), impeller::TRect< Scalar >::Expand(), impeller::CubicPathComponent::Extrema(), impeller::TPoint< Type >::Floor(), impeller::TRect< Scalar >::GetCenter(), impeller::PlaygroundImpl::GetContentScale(), impeller::TPoint< Type >::GetDistanceSquared(), impeller::GaussianBlurFilterContents::GetFilterCoverage(), impeller::GaussianBlurFilterContents::GetFilterSourceCoverage(), impeller::TRect< Scalar >::GetLeft(), impeller::TRect< Scalar >::GetNormalizingTransform(), impeller::BitmapSTB::GetPixelAddress(), impeller::TRect< Scalar >::GetRight(), impeller::TRect< Scalar >::GetX(), impeller::TRect< Scalar >::GetXYWH(), impeller::PathBuilder::HorizontalLineTo(), impeller::LineGeometry::IsAxisAlignedRect(), impeller::TPoint< Type >::IsZero(), impeller::Matrix::MakeScale(), impeller::testing::MetalScreenshotter::MakeScreenshot(), impeller::MakeTextFrameFromTextBlobSkia(), impeller::TPoint< Type >::MakeXY(), impeller::TPoint< Type >::Max(), impeller::TPoint< Type >::Min(), impeller::TPoint< Type >::Normalize(), impeller::TPoint< Type >::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(), impeller::TPoint< Type >::Round(), impeller::TRect< Scalar >::Scale(), 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 26 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::BlitCopyTextureToTextureCommandGLES::Encode(), impeller::BlitCopyTextureToTextureCommandMTL::Encode(), impeller::BlitCopyTextureToTextureCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandVK::Encode(), impeller::BlitCopyBufferToTextureCommandMTL::Encode(), impeller::TRect< Scalar >::Expand(), impeller::CubicPathComponent::Extrema(), impeller::TPoint< Type >::Floor(), impeller::TRect< Scalar >::GetBottom(), impeller::TRect< Scalar >::GetCenter(), impeller::PlaygroundImpl::GetContentScale(), impeller::TPoint< Type >::GetDistanceSquared(), impeller::GaussianBlurFilterContents::GetFilterCoverage(), impeller::GaussianBlurFilterContents::GetFilterSourceCoverage(), impeller::TRect< Scalar >::GetNormalizingTransform(), impeller::BitmapSTB::GetPixelAddress(), impeller::TRect< Scalar >::GetTop(), impeller::TRect< Scalar >::GetXYWH(), impeller::TRect< Scalar >::GetY(), impeller::PathBuilder::HorizontalLineTo(), impeller::LineGeometry::IsAxisAlignedRect(), impeller::TPoint< Type >::IsZero(), impeller::Matrix::MakeScale(), impeller::testing::MetalScreenshotter::MakeScreenshot(), impeller::TPoint< Type >::MakeXY(), impeller::TPoint< Type >::Max(), impeller::TPoint< Type >::Min(), impeller::TPoint< Type >::Normalize(), impeller::TPoint< Type >::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(), impeller::TPoint< Type >::Round(), impeller::TRect< Scalar >::Scale(), 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().