#ifndef UI_GFX_GEOMETRY_VECTOR2D_F_H_
#define UI_GFX_GEOMETRY_VECTOR2D_F_H_
#include <iosfwd>
#include <string>
#include "ui/gfx/geometry/geometry_export.h"
namespace perfetto {
class TracedValue;
}
namespace gfx {
class GEOMETRY_EXPORT Vector2dF { … };
inline constexpr bool operator==(const Vector2dF& lhs, const Vector2dF& rhs) { … }
inline constexpr bool operator!=(const Vector2dF& lhs, const Vector2dF& rhs) { … }
inline constexpr Vector2dF operator-(const Vector2dF& v) { … }
inline Vector2dF operator+(const Vector2dF& lhs, const Vector2dF& rhs) { … }
inline Vector2dF operator-(const Vector2dF& lhs, const Vector2dF& rhs) { … }
GEOMETRY_EXPORT double CrossProduct(const Vector2dF& lhs, const Vector2dF& rhs);
GEOMETRY_EXPORT double DotProduct(const Vector2dF& lhs, const Vector2dF& rhs);
GEOMETRY_EXPORT Vector2dF ScaleVector2d(const Vector2dF& v,
float x_scale,
float y_scale);
inline Vector2dF ScaleVector2d(const Vector2dF& v, float scale) { … }
inline Vector2dF TransposeVector2d(const Vector2dF& v) { … }
void PrintTo(const Vector2dF& vector, ::std::ostream* os);
}
#endif