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
1 parent
6caf1bf
commit fa7e3d4
Showing
8 changed files
with
81 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/geometry/qgsray3d.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsRay3D | ||
{ | ||
%Docstring | ||
A representation of a ray in 3D. | ||
|
||
A ray is composed of an origin point (the start of the ray) and a direction vector. | ||
|
||
.. versionadded:: 3.18 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsray3d.h" | ||
%End | ||
public: | ||
QgsRay3D( const QVector3D &origin, const QVector3D &direction ); | ||
%Docstring | ||
Constructor | ||
%End | ||
|
||
QVector3D origin() const; | ||
%Docstring | ||
Returns the origin of the ray | ||
%End | ||
QVector3D direction() const; | ||
%Docstring | ||
Returns the direction of the ray | ||
%End | ||
|
||
void setOrigin( const QVector3D &origin ); | ||
%Docstring | ||
Sets the origin of the ray | ||
%End | ||
void setDirection( const QVector3D direction ); | ||
%Docstring | ||
Sets the direction of the ray | ||
%End | ||
|
||
QVector3D projectedPoint( const QVector3D &point ) const; | ||
%Docstring | ||
Returns the projection of the point on the ray | ||
(which is the closest point of the ray to ``point``) | ||
%End | ||
bool intersectsWith( const QgsBox3d &box ) const; | ||
%Docstring | ||
Checks whether the ray intersects with ``box`` | ||
%End | ||
bool isInFront( const QVector3D &point ) const; | ||
%Docstring | ||
Checks whether the point is in front of the ray | ||
%End | ||
double angleToPoint( const QVector3D &point ) const; | ||
%Docstring | ||
Returns the angle between the ray and the vector from the ray's origin and the point ``point`` | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/geometry/qgsray3d.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
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
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
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