- inline wxPoint2DDouble();
- inline wxPoint2DDouble( wxDouble x , wxDouble y ) ;
- inline wxPoint2DDouble( const wxPoint2DDouble &pt ) ;
-
- // two different conversions to integers, floor and rounding
- inline void GetFloor( wxInt32 *x , wxInt32 *y ) ;
- inline void GetRounded( wxInt32 *x , wxInt32 *y ) ;
-
- inline wxDouble GetVectorLength() ;
- inline wxDouble GetVectorAngle() ;
- void SetVectorLength( wxDouble length ) ;
- void SetVectorAngle( wxDouble degrees ) ;
- void SetPolarCoordinates( wxDouble angle , wxDouble length ) ;
- // set the vector length to 1.0, preserving the angle
- void Normalize() ;
-
- inline wxDouble GetDistance( const wxPoint2DDouble &pt ) ;
- inline wxDouble GetDistanceSquare( const wxPoint2DDouble &pt ) ;
- inline wxDouble GetDotProduct( const wxPoint2DDouble &vec ) ;
- inline wxDouble GetCrossProduct( const wxPoint2DDouble &vec ) ;
+ inline wxPoint2DDouble();
+ inline wxPoint2DDouble( wxDouble x , wxDouble y );
+ inline wxPoint2DDouble( const wxPoint2DDouble &pt );
+
+ // two different conversions to integers, floor and rounding
+ inline void GetFloor( wxInt32 *x , wxInt32 *y );
+ inline void GetRounded( wxInt32 *x , wxInt32 *y );
+
+ inline wxDouble GetVectorLength();
+ inline wxDouble GetVectorAngle();
+ void SetVectorLength( wxDouble length );
+ void SetVectorAngle( wxDouble degrees );
+ void SetPolarCoordinates( wxDouble angle , wxDouble length );
+ // set the vector length to 1.0, preserving the angle
+ void Normalize();
+
+ inline wxDouble GetDistance( const wxPoint2DDouble &pt );
+ inline wxDouble GetDistanceSquare( const wxPoint2DDouble &pt );
+ inline wxDouble GetDotProduct( const wxPoint2DDouble &vec );
+ inline wxDouble GetCrossProduct( const wxPoint2DDouble &vec );
+
+ // the reflection of this point
+ inline wxPoint2DDouble operator-();
+
+ inline wxPoint2DDouble& operator=(const wxPoint2DDouble& pt);
+ inline wxPoint2DDouble& operator+=(const wxPoint2DDouble& pt);
+ inline wxPoint2DDouble& operator-=(const wxPoint2DDouble& pt);
+ inline wxPoint2DDouble& operator*=(const wxPoint2DDouble& pt);
+ inline wxPoint2DDouble& operator*=(wxDouble n);
+ inline wxPoint2DDouble& operator*=(wxInt32 n);
+ inline wxPoint2DDouble& operator/=(const wxPoint2DDouble& pt);
+ inline wxPoint2DDouble& operator/=(wxDouble n);
+ inline wxPoint2DDouble& operator/=(wxInt32 n);
+
+ inline bool operator==(const wxPoint2DDouble& pt) const;
+ inline bool operator!=(const wxPoint2DDouble& pt) const;
+
+ wxDouble m_x;
+ wxDouble m_y;
+};