3D line segment More...
#include <line_segment.h>
| Public Member Functions | |
| LineSegment3x () | |
| LineSegment3x (const LineSegment3x< Type > ©) | |
| LineSegment3x (const Vec3< Type > &point_p, const Vec3< Type > &point_q) | |
| Vec3< Type > | get_midpoint () const | 
| Get the midpoint of this line. | |
| bool | operator!= (const LineSegment3x< Type > &line) const | 
| != operator. | |
| LineSegment3x< Type > & | operator= (const LineSegment3x< Type > ©) | 
| = operator. | |
| bool | operator== (const LineSegment3x< Type > &line) const | 
| == operator. | |
| Type | point_distance (const Vec3< Type > &point, Vec3< Type > &dest_intercept) const | 
| Calculate the distance from a line segment to a point. | |
| Public Attributes | |
| Vec3< Type > | p | 
| Start point on the line. | |
| Vec3< Type > | q | 
3D line segment
A line segment has a start point and an end point
These line templates are defined for: int (LineSegment3), float (LineSegment3f), double (LineSegment3d) 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
Get the midpoint of this line.
References clan::LineSegment3x< Type >::p, and clan::LineSegment3x< Type >::q.
| 
 | inline | 
!= operator.
References clan::line, clan::LineSegment3x< Type >::p, and clan::LineSegment3x< Type >::q.
| 
 | inline | 
= operator.
References clan::LineSegment3x< Type >::p, and clan::LineSegment3x< Type >::q.
| 
 | inline | 
== operator.
References clan::line, clan::LineSegment3x< Type >::p, and clan::LineSegment3x< Type >::q.
| Type clan::LineSegment3x< Type >::point_distance | ( | const Vec3< Type > & | point, | 
| Vec3< Type > & | dest_intercept ) const | 
Calculate the distance from a line segment to a point.
| point | = The point | 
| dest_intercept | = On Return: The point on the line closest to the point | 
| Vec3<Type> clan::LineSegment3x< Type >::p | 
Start point on the line.
Referenced by clan::LineSegment3x< Type >::get_midpoint(), clan::LineSegment3x< Type >::operator!=(), clan::LineSegment3x< Type >::operator=(), and clan::LineSegment3x< Type >::operator==().
| Vec3<Type> clan::LineSegment3x< Type >::q |