diff options
Diffstat (limited to 'include/basegfx/vector')
-rw-r--r-- | include/basegfx/vector/b2dvector.hxx | 4 | ||||
-rw-r--r-- | include/basegfx/vector/b2ivector.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/basegfx/vector/b2dvector.hxx b/include/basegfx/vector/b2dvector.hxx index f5148dbe7718..4b95987ddc89 100644 --- a/include/basegfx/vector/b2dvector.hxx +++ b/include/basegfx/vector/b2dvector.hxx @@ -141,7 +141,7 @@ namespace basegfx @return The Scalar value of the two involved 2D Vectors */ - double scalar( const B2DVector& rVec ) const; + double scalar( const B2DVector& rVec ) const { return((mfX * rVec.mfX) + (mfY * rVec.mfY)); } /** Calculate the length of the cross product with another 2D Vector @@ -158,7 +158,7 @@ namespace basegfx @return The length of the cross product of the two involved 2D Vectors */ - double cross( const B2DVector& rVec ) const; + double cross( const B2DVector& rVec ) const { return(mfX * rVec.getY() - mfY * rVec.getX()); } /** Calculate the Angle with another 2D Vector diff --git a/include/basegfx/vector/b2ivector.hxx b/include/basegfx/vector/b2ivector.hxx index 23eb811becd1..1fdeeb4ea13a 100644 --- a/include/basegfx/vector/b2ivector.hxx +++ b/include/basegfx/vector/b2ivector.hxx @@ -121,7 +121,7 @@ namespace basegfx @return The Scalar value of the two involved 2D Vectors */ - double scalar( const B2IVector& rVec ) const; + double scalar( const B2IVector& rVec ) const { return((mnX * rVec.mnX) + (mnY * rVec.mnY)); } /** Transform vector by given transformation matrix. |