-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
380 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
class QgsVector | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsvector.h> | ||
%End | ||
|
||
public: | ||
QgsVector(); | ||
|
||
QgsVector( double x, double y ); | ||
|
||
QgsVector operator-() const; | ||
|
||
QgsVector operator*( double scalar ) const; | ||
|
||
QgsVector operator/( double scalar ) const; | ||
|
||
double operator*( QgsVector v ) const; | ||
|
||
QgsVector operator+( QgsVector other ) const; | ||
|
||
QgsVector& operator+=( QgsVector other ); | ||
|
||
QgsVector operator-( QgsVector other ) const; | ||
|
||
QgsVector& operator-=( QgsVector other ); | ||
|
||
double length() const; | ||
|
||
double x() const; | ||
|
||
double y() const; | ||
|
||
QgsVector perpVector() const; | ||
|
||
double angle() const; | ||
|
||
double angle( QgsVector v ) const; | ||
|
||
QgsVector rotateBy( double rot ) const; | ||
|
||
QgsVector normalized() const; | ||
|
||
bool operator==( QgsVector other ) const; | ||
|
||
bool operator!=( QgsVector other ) const; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.