Lines Matching refs:PointF
19 class GFX_EXPORT PointF {
21 constexpr PointF() : x_(0.f), y_(0.f) {} in PointF() function
22 constexpr PointF(float x, float y) : x_(x), y_(y) {} in PointF() function
24 constexpr explicit PointF(const Point& p) in PointF() function
25 : PointF(static_cast<float>(p.x()), static_cast<float>(p.y())) {} in PointF()
52 void SetToMin(const PointF& other);
53 void SetToMax(const PointF& other);
65 bool operator<(const PointF& rhs) const {
85 inline bool operator==(const PointF& lhs, const PointF& rhs) {
89 inline bool operator!=(const PointF& lhs, const PointF& rhs) {
93 inline PointF operator+(const PointF& lhs, const Vector2dF& rhs) {
94 PointF result(lhs);
99 inline PointF operator-(const PointF& lhs, const Vector2dF& rhs) {
100 PointF result(lhs);
105 inline Vector2dF operator-(const PointF& lhs, const PointF& rhs) {
109 inline PointF PointAtOffsetFromOrigin(const Vector2dF& offset_from_origin) { in PointAtOffsetFromOrigin()
110 return PointF(offset_from_origin.x(), offset_from_origin.y()); in PointAtOffsetFromOrigin()
113 GFX_EXPORT PointF ScalePoint(const PointF& p, float x_scale, float y_scale);
115 inline PointF ScalePoint(const PointF& p, float scale) { in ScalePoint()
122 void PrintTo(const PointF& point, ::std::ostream* os);