#ifndef UI_GFX_GEOMETRY_POINT_F_H_
#define UI_GFX_GEOMETRY_POINT_F_H_
#include <iosfwd>
#include <string>
#include <tuple>
#include "build/build_config.h"
#include "ui/gfx/geometry/geometry_export.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/vector2d_f.h"
#if BUILDFLAG(IS_APPLE)
struct CGPoint;
#endif
namespace perfetto {
class TracedValue;
}
namespace gfx {
class GEOMETRY_EXPORT PointF { … };
constexpr bool operator==(const PointF& lhs, const PointF& rhs) { … }
constexpr bool operator!=(const PointF& lhs, const PointF& rhs) { … }
constexpr PointF operator+(const PointF& lhs, const Vector2dF& rhs) { … }
constexpr PointF operator-(const PointF& lhs, const Vector2dF& rhs) { … }
inline Vector2dF operator-(const PointF& lhs, const PointF& rhs) { … }
inline PointF PointAtOffsetFromOrigin(const Vector2dF& offset_from_origin) { … }
GEOMETRY_EXPORT PointF ScalePoint(const PointF& p,
float x_scale,
float y_scale);
inline PointF ScalePoint(const PointF& p, float scale) { … }
inline PointF TransposePoint(const PointF& p) { … }
void PrintTo(const PointF& point, ::std::ostream* os);
}
#endif