3D line More...
#include <line.h>
Public Member Functions | |
Line3x () | |
Line3x (const Line3x< Type > ©)=default | |
Line3x (const Vec3< Type > &point_p, const Vec3< Type > &point_q) | |
Vec3< Type > | get_intersection (const Line3x< Type > &second, bool &intersect, Type range=(Type) 0.5) const |
Return the intersection of this and other line. | |
bool | operator!= (const Line3x< Type > &line) const |
!= operator. | |
Line3x< Type > & | operator= (const Line3x< Type > ©)=default |
= operator. | |
bool | operator== (const Line3x< Type > &line) const |
== operator. | |
Public Attributes | |
Vec3< Type > | p |
Vec3< Type > | q |
3D line
These line templates are defined for: int (Line3), float (Line3f), double (Line3d)
|
inline |
|
default |
|
inline |
Vec3< Type > clan::Line3x< Type >::get_intersection | ( | const Line3x< Type > & | second, |
bool & | intersect, | ||
Type | range = (Type) 0.5 ) const |
Return the intersection of this and other line.
second | = The second line to use |
intersect | = On Return: true if the lines intersect, false if the lines are parallel |
range | = Rounding error delta, to use to judge whether of not the lines intersect |
|
inline |
!= operator.
References clan::line, clan::Line3x< Type >::p, and clan::Line3x< Type >::q.
|
default |
= operator.
|
inline |
== operator.
References clan::line, clan::Line3x< Type >::p, and clan::Line3x< Type >::q.
Vec3<Type> clan::Line3x< Type >::p |
Referenced by clan::Line3x< Type >::operator!=(), and clan::Line3x< Type >::operator==().
Vec3<Type> clan::Line3x< Type >::q |
Referenced by clan::Line3x< Type >::operator!=(), and clan::Line3x< Type >::operator==().