Home | History | Annotate | Download | only in gfx

Lines Matching defs:Vector2dF

19 class UI_EXPORT Vector2dF {
21 Vector2dF() : x_(0), y_(0) {}
22 Vector2dF(float x, float y) : x_(x), y_(y) {}
34 void Add(const Vector2dF& other);
36 void Subtract(const Vector2dF& other);
38 void operator+=(const Vector2dF& other) { Add(other); }
39 void operator-=(const Vector2dF& other) { Subtract(other); }
41 void SetToMin(const Vector2dF& other) {
46 void SetToMax(const Vector2dF& other) {
69 inline bool operator==(const Vector2dF& lhs, const Vector2dF& rhs) {
73 inline bool operator!=(const Vector2dF& lhs, const Vector2dF& rhs) {
77 inline Vector2dF operator-(const Vector2dF& v) {
78 return Vector2dF(-v.x(), -v.y());
81 inline Vector2dF operator+(const Vector2dF& lhs, const Vector2dF& rhs) {
82 Vector2dF result = lhs;
87 inline Vector2dF operator-(const Vector2dF& lhs, const Vector2dF& rhs) {
88 Vector2dF result = lhs;
94 UI_EXPORT double CrossProduct(const Vector2dF& lhs, const Vector2dF& rhs);
97 UI_EXPORT double DotProduct(const Vector2dF& lhs, const Vector2dF& rhs);
101 UI_EXPORT Vector2dF ScaleVector2d(const Vector2dF& v,
106 inline Vector2dF ScaleVector2d(const Vector2dF& v, float scale) {