// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/gfx/geometry/vector2d.h" #include <cmath> #include "base/numerics/clamped_math.h" #include "base/strings/stringprintf.h" namespace gfx { bool Vector2d::IsZero() const { … } void Vector2d::Add(const Vector2d& other) { … } void Vector2d::Subtract(const Vector2d& other) { … } Vector2d operator-(const Vector2d& v) { … } int64_t Vector2d::LengthSquared() const { … } float Vector2d::Length() const { … } std::string Vector2d::ToString() const { … } } // namespace gfx