15 return x_ == 0 && y_ == 0;
19 x_ = base::ClampAdd(other.x_, x_);
20 y_ = base::ClampAdd(other.y_, y_);
24 x_ = base::ClampSub(x_, other.x_);
25 y_ = base::ClampSub(y_, other.y_);
29 return static_cast<int64_t
>(x_) * x_ +
static_cast<int64_t
>(y_) * y_;
void Subtract(const Vector2d &other)
void Add(const Vector2d &other)
std::string ToString() const
int64_t LengthSquared() const
std::string StringPrintf(const std::string &format, Args... args)
SIN Vec< N, float > sqrt(const Vec< N, float > &x)