Lines Matching refs:Vector2dF
20 class GFX_EXPORT Vector2dF {
22 constexpr Vector2dF() : x_(0), y_(0) {} in Vector2dF() function
23 constexpr Vector2dF(float x, float y) : x_(x), y_(y) {} in Vector2dF() function
35 void Add(const Vector2dF& other);
37 void Subtract(const Vector2dF& other);
39 void operator+=(const Vector2dF& other) { Add(other); }
40 void operator-=(const Vector2dF& other) { Subtract(other); }
42 void SetToMin(const Vector2dF& other) { in SetToMin()
47 void SetToMax(const Vector2dF& other) { in SetToMax()
70 inline constexpr bool operator==(const Vector2dF& lhs, const Vector2dF& rhs) {
74 inline constexpr bool operator!=(const Vector2dF& lhs, const Vector2dF& rhs) {
78 inline constexpr Vector2dF operator-(const Vector2dF& v) {
79 return Vector2dF(-v.x(), -v.y());
82 inline Vector2dF operator+(const Vector2dF& lhs, const Vector2dF& rhs) {
83 Vector2dF result = lhs;
88 inline Vector2dF operator-(const Vector2dF& lhs, const Vector2dF& rhs) {
89 Vector2dF result = lhs;
95 GFX_EXPORT double CrossProduct(const Vector2dF& lhs, const Vector2dF& rhs);
98 GFX_EXPORT double DotProduct(const Vector2dF& lhs, const Vector2dF& rhs);
102 GFX_EXPORT Vector2dF ScaleVector2d(const Vector2dF& v,
107 inline Vector2dF ScaleVector2d(const Vector2dF& v, float scale) { in ScaleVector2d()
114 void PrintTo(const Vector2dF& vector, ::std::ostream* os);