projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added wxDialog::GetParentForModalDialog() and use it to try to always create modal...
[wxWidgets.git]
/
include
/
wx
/
geometry.h
diff --git
a/include/wx/geometry.h
b/include/wx/geometry.h
index 2aa92a80f9c1d0b4a669e6457834b5781b814cd1..10c60516d37a371c4561a252530e593a14a7859d 100644
(file)
--- a/
include/wx/geometry.h
+++ b/
include/wx/geometry.h
@@
-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 ) );