Chromium Code Reviews| Index: ui/gfx/vector3d_f.h |
| diff --git a/ui/gfx/vector3d_f.h b/ui/gfx/vector3d_f.h |
| index a2845f89267880e28b4634df450471e30c520402..182411eaf0e1c3518b0cb01bbb2f1d5a21767e72 100644 |
| --- a/ui/gfx/vector3d_f.h |
| +++ b/ui/gfx/vector3d_f.h |
| @@ -95,6 +95,15 @@ inline Vector3dF CrossProduct(const Vector3dF& lhs, const Vector3dF& rhs) { |
| // Return the dot product of two vectors. |
| UI_EXPORT float DotProduct(const Vector3dF& lhs, const Vector3dF& rhs); |
| +// Return a vector that is |v| scaled by the given scale factors along each |
| +// axis. |
| +UI_EXPORT Vector3dF ScaleVector3d( |
| + const Vector3dF& v, float x_scale, float y_scale, float z_scale); |
|
sky
2012/11/09 17:06:21
nit on the wrapper here too.
danakj
2012/11/09 18:21:47
Done.
|
| + |
| +// Return a vector that is |v| scaled by the given scale factor. |
| +inline Vector3dF ScaleVector3d(const Vector3dF& v, float scale) { |
| + return ScaleVector3d(v, scale, scale, scale); |
| +} |
| } // namespace gfx |