18 return x_ == 0 && y_ == 0;
32 return static_cast<double>(x_) * x_ +
static_cast<double>(y_) * y_;
45 return static_cast<double>(lhs.
x()) * rhs.
y() -
46 static_cast<double>(lhs.
y()) * rhs.
x();
50 return static_cast<double>(lhs.
x()) * rhs.
x() +
51 static_cast<double>(lhs.
y()) * rhs.
y();
56 scaled_v.
Scale(x_scale, y_scale);
void Add(const Vector2dF &other)
constexpr float y() const
std::string ToString() const
constexpr float x() const
void Subtract(const Vector2dF &other)
double LengthSquared() const
std::string StringPrintf(const std::string &format, Args... args)
double DotProduct(const Vector2dF &lhs, const Vector2dF &rhs)
Vector2dF ScaleVector2d(const Vector2dF &v, float x_scale, float y_scale)
double CrossProduct(const Vector2dF &lhs, const Vector2dF &rhs)
SIN Vec< N, float > sqrt(const Vec< N, float > &x)