|
| line3d () |
| Default constructor. More...
|
|
| line3d (T xa, T ya, T za, T xb, T yb, T zb) |
| Constructor with two points. More...
|
|
| line3d (const glm::vec3 &start, const glm::vec3 &end) |
| Constructor with two points as vectors. More...
|
|
line3d< T > | operator+ (const glm::vec3 &point) const |
|
line3d< T > & | operator+= (const glm::vec3 &point) |
|
line3d< T > | operator- (const glm::vec3 &point) const |
|
line3d< T > & | operator-= (const glm::vec3 &point) |
|
bool | operator== (const line3d< T > &other) const |
|
bool | operator!= (const line3d< T > &other) const |
|
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. More...
|
|
void | setLine (const glm::vec3 &nstart, const glm::vec3 &nend) |
| Set this line to a new line going through the two points. More...
|
|
void | setLine (const line3d< T > &line) |
| Set this line to new line given as parameter. More...
|
|
T | getLength () const |
| Get length of line. More...
|
|
T | getLengthSQ () const |
| Get squared length of line. More...
|
|
glm::vec3 | getMiddle () const |
| Get middle of line. More...
|
|
glm::vec3 | getVector () const |
| Get vector of line. More...
|
|
bool | isPointBetweenStartAndEnd (const glm::vec3 &point) const |
| Check if the given point is between start and end of the line. More...
|
|
glm::vec3 | getClosestPoint (const glm::vec3 &point) const |
| Get the closest point on this line to a point. More...
|
|
bool | getIntersectionWithSphere (const glm::vec3 &sorigin, T sradius, double &outdistance) const |
| Check if the line intersects with a sphere. More...
|
|
template<class T>
class saga::core::line3d< T >
3D line between two points with intersection methods.
Definition at line 17 of file line3d.h.