Make some member functions const
This commit is contained in:
@@ -41,7 +41,7 @@ public :
|
||||
wxInt32 GetCrossProduct( const wxPoint2DInt &vec ) const;
|
||||
|
||||
// the reflection of this point
|
||||
wxPoint2DInt operator-();
|
||||
wxPoint2DInt operator-() const;
|
||||
|
||||
wxPoint2DInt& operator=(const wxPoint2DInt& pt);
|
||||
wxPoint2DInt& operator+=(const wxPoint2DInt& pt);
|
||||
@@ -100,7 +100,7 @@ public :
|
||||
wxDouble GetCrossProduct( const wxPoint2DDouble &vec ) const;
|
||||
|
||||
// the reflection of this point
|
||||
wxPoint2DDouble operator-();
|
||||
wxPoint2DDouble operator-() const;
|
||||
|
||||
wxPoint2DDouble& operator=(const wxPoint2DDouble& pt);
|
||||
wxPoint2DDouble& operator+=(const wxPoint2DDouble& pt);
|
||||
@@ -191,7 +191,7 @@ public:
|
||||
|
||||
void ConstrainTo( const wxRect2DDouble &rect );
|
||||
|
||||
wxPoint2DDouble Interpolate( wxInt32 widthfactor , wxInt32 heightfactor );
|
||||
wxPoint2DDouble Interpolate( wxInt32 widthfactor, wxInt32 heightfactor ) const;
|
||||
|
||||
static void Intersect( const wxRect2DDouble &src1 , const wxRect2DDouble &src2 , wxRect2DDouble *dest );
|
||||
void Intersect( const wxRect2DDouble &otherRect );
|
||||
@@ -280,7 +280,7 @@ public:
|
||||
void Inset( wxInt32 left , wxInt32 top ,wxInt32 right , wxInt32 bottom );
|
||||
void Offset( const wxPoint2DInt &pt );
|
||||
void ConstrainTo( const wxRect2DInt &rect );
|
||||
wxPoint2DInt Interpolate( wxInt32 widthfactor , wxInt32 heightfactor );
|
||||
wxPoint2DInt Interpolate( wxInt32 widthfactor, wxInt32 heightfactor ) const;
|
||||
|
||||
static void Intersect( const wxRect2DInt &src1 , const wxRect2DInt &src2 , wxRect2DInt *dest );
|
||||
void Intersect( const wxRect2DInt &otherRect );
|
||||
|
Reference in New Issue
Block a user