| Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
#include <line3d.h>
Public Member Functions | |
| vector3d< T > | getClosestPoint (const vector3d< T > &point) const |
| Returns the closest point on this line to a point. | |
| bool | getIntersectionWithSphere (vector3d< T > sorigin, T sradius, f64 &outdistance) const |
| Returns if the line intersects with a shpere. | |
| T | getLength () const |
| Get length of line. | |
| T | getLengthSQ () const |
| Get squared length of line. | |
| vector3d< T > | getMiddle () const |
| Get middle of line. | |
| vector3d< T > | getVector () const |
| Get vector of line. | |
| bool | isPointBetweenStartAndEnd (const vector3d< T > &point) const |
| Returns if the given point is between start and end of the line. | |
| line3d (const vector3d< T > &start, const vector3d< T > &end) | |
| Constructor with two points as vectors. | |
| line3d (T xa, T ya, T za, T xb, T yb, T zb) | |
| Constructor with two points. | |
| line3d () | |
| Default constructor. | |
| bool | operator!= (const line3d< T > &other) const |
| line3d< T > | operator+ (const vector3d< T > &point) const |
| line3d< T > & | operator+= (const vector3d< T > &point) |
| line3d< T > | operator- (const vector3d< T > &point) const |
| line3d< T > & | operator-= (const vector3d< T > &point) |
| bool | operator== (const line3d< T > &other) const |
| void | setLine (const line3d< T > &line) |
| Set this line to new line given as parameter. | |
| void | setLine (const vector3d< T > &nstart, const vector3d< T > &nend) |
| Set this line to a new line going through the two points. | |
| void | setLine (const T &xa, const T &ya, const T &za, const T &xb, const T &yb, const T &zb) |
| Set this line to a new line going through the two points. | |
Public Attributes | |
| vector3d< T > | end |
| End point of line. | |
| vector3d< T > | start |
| Start point of line. | |
Definition at line 18 of file line3d.h.
|
|||||||||
|
Default constructor. line from (0,0,0) to (1,1,1) |
|
||||||||||||||||||||||||||||||||
|
Constructor with two points.
|
|
||||||||||||||||
|
Constructor with two points as vectors.
|
|
||||||||||
|
Returns the closest point on this line to a point.
Definition at line 89 of file line3d.h. References irr::core::vector3d< T >::dotProduct(), irr::core::line3d< T >::end, irr::core::vector3d< T >::getLength(), and irr::core::line3d< T >::start. |
|
||||||||||||||||||||
|
Returns if the line intersects with a shpere.
Definition at line 113 of file line3d.h. References irr::core::vector3d< T >::dotProduct(), irr::core::vector3d< T >::getLength(), irr::core::line3d< T >::getVector(), and irr::core::line3d< T >::start. |
|
|||||||||
|
Get length of line.
Definition at line 56 of file line3d.h. References irr::core::line3d< T >::end, and irr::core::line3d< T >::start. Referenced by irr::core::aabbox3d< f32 >::intersectsWithLine(). |
|
|||||||||
|
Get squared length of line.
Definition at line 60 of file line3d.h. References irr::core::line3d< T >::end, and irr::core::line3d< T >::start. |
|
|||||||||
|
Get middle of line.
Definition at line 64 of file line3d.h. References irr::core::line3d< T >::end, and irr::core::line3d< T >::start. Referenced by irr::core::aabbox3d< f32 >::intersectsWithLine(). |
|
|||||||||
|
Get vector of line.
Definition at line 71 of file line3d.h. References irr::core::line3d< T >::end, and irr::core::line3d< T >::start. Referenced by irr::core::line3d< T >::getIntersectionWithSphere(), and irr::core::aabbox3d< f32 >::intersectsWithLine(). |
|
||||||||||
|
Returns if the given point is between start and end of the line. Assumes that the point is already somewhere on the line.
Definition at line 81 of file line3d.h. References irr::core::line3d< T >::end, irr::core::vector3d< T >::isBetweenPoints(), and irr::core::line3d< T >::start. |
|
||||||||||
|
Definition at line 40 of file line3d.h. References irr::core::line3d< T >::end, and irr::core::line3d< T >::start. |
|
||||||||||
|
Definition at line 32 of file line3d.h. References irr::core::line3d< T >::end, and irr::core::line3d< T >::start. |
|
||||||||||
|
Definition at line 33 of file line3d.h. References irr::core::line3d< T >::end, and irr::core::line3d< T >::start. |
|
||||||||||
|
Definition at line 35 of file line3d.h. References irr::core::line3d< T >::end, and irr::core::line3d< T >::start. |
|
||||||||||
|
Definition at line 36 of file line3d.h. References irr::core::line3d< T >::end, and irr::core::line3d< T >::start. |
|
||||||||||
|
Definition at line 38 of file line3d.h. References irr::core::line3d< T >::end, and irr::core::line3d< T >::start. |
|
||||||||||
|
Set this line to new line given as parameter.
Definition at line 51 of file line3d.h. References irr::core::line3d< T >::end, and irr::core::line3d< T >::start. |
|
||||||||||||||||
|
Set this line to a new line going through the two points.
Definition at line 48 of file line3d.h. References irr::core::line3d< T >::end, and irr::core::line3d< T >::start. |
|
||||||||||||||||||||||||||||||||
|
Set this line to a new line going through the two points.
Definition at line 45 of file line3d.h. References irr::core::line3d< T >::end, and irr::core::line3d< T >::start. |
|
|||||
|
|||||
| The Irrlicht
Engine Documentation © 2003-2008 by Nikolaus Gebhardt. Generated
on Sun Jun 1 07:59:13 2008 by Doxygen
(1.4.2) |