X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/068becf5625117fda98c6a6f94433c5b5147e367..3b49331b7441e091fc5997b830801d76a1243f28:/include/wx/geometry.h?ds=sidebyside diff --git a/include/wx/geometry.h b/include/wx/geometry.h index 2aa92a80f9..237f84dca5 100644 --- a/include/wx/geometry.h +++ b/include/wx/geometry.h @@ -20,8 +20,8 @@ #include "wx/gdicmn.h" #include "wx/math.h" -class WXDLLIMPEXP_BASE wxDataInputStream; -class WXDLLIMPEXP_BASE wxDataOutputStream; +class WXDLLIMPEXP_FWD_BASE wxDataInputStream; +class WXDLLIMPEXP_FWD_BASE wxDataOutputStream; // clipping from Cohen-Sutherland @@ -379,6 +379,11 @@ inline void wxPoint2DDouble::SetVectorLength( wxDouble length ) m_y = (m_y * length / before) ; } +inline void wxPoint2DDouble::Normalize() +{ + SetVectorLength( 1 ); +} + inline wxDouble wxPoint2DDouble::GetDistance( const wxPoint2DDouble &pt ) const { return sqrt( GetDistanceSquare( pt ) );