| Index: ui/gfx/vector3d_f.cc
|
| diff --git a/ui/gfx/vector3d_f.cc b/ui/gfx/vector3d_f.cc
|
| index 730f00b9975cf48782963c296e1e51171437f60a..02f0378832491261cca41986fefe7abedee86502 100644
|
| --- a/ui/gfx/vector3d_f.cc
|
| +++ b/ui/gfx/vector3d_f.cc
|
| @@ -76,4 +76,13 @@ float DotProduct(const Vector3dF& lhs, const Vector3dF& rhs) {
|
| return lhs.x() * rhs.x() + lhs.y() * rhs.y() + lhs.z() * rhs.z();
|
| }
|
|
|
| +Vector3dF ScaleVector3d(const Vector3dF& v,
|
| + float x_scale,
|
| + float y_scale,
|
| + float z_scale) {
|
| + Vector3dF scaled_v(v);
|
| + scaled_v.Scale(x_scale, y_scale, z_scale);
|
| + return scaled_v;
|
| +}
|
| +
|
| } // namespace gfx
|
|
|