| Index: ui/gfx/vector2d_f.cc
|
| diff --git a/ui/gfx/vector2d_f.cc b/ui/gfx/vector2d_f.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7612223690e868cc3a15d9318ea9f5c893fed214
|
| --- /dev/null
|
| +++ b/ui/gfx/vector2d_f.cc
|
| @@ -0,0 +1,24 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "base/stringprintf.h"
|
| +#include "ui/gfx/vector2d_f.h"
|
| +
|
| +namespace gfx {
|
| +
|
| +Vector2dF::Vector2dF()
|
| + : m_x(0),
|
| + m_y(0) {
|
| +}
|
| +
|
| +Vector2dF::Vector2dF(float x, float y)
|
| + : m_x(x),
|
| + m_y(y) {
|
| +}
|
| +
|
| +std::string Vector2dF::ToString() const {
|
| + return base::StringPrintf("[%f %f]", m_x, m_y);
|
| +}
|
| +
|
| +} // namespace gfx
|
|
|