3D line segment More...
#include <line_segment.h>

Public Member Functions | |
| CL_LineSegment3x () | |
| CL_LineSegment3x (const CL_Vec3< Type > &point_p, const CL_Vec3< Type > &point_q) | |
| CL_LineSegment3x (const CL_LineSegment3x< Type > ©) | |
Attributes | |
| CL_Vec3< Type > | get_midpoint () const |
| Get the midpoint of this line. | |
| Type | point_distance (const CL_Vec3< Type > &point, CL_Vec3< Type > &dest_intercept) const |
| Calculate the distance from a line segment to a point. | |
Operators | |
| CL_LineSegment3x< Type > & | operator= (const CL_LineSegment3x< Type > ©) |
| = operator. | |
| bool | operator== (const CL_LineSegment3x< Type > &line) const |
| == operator. | |
| bool | operator!= (const CL_LineSegment3x< Type > &line) const |
| != operator. | |
Public Attributes | |
| CL_Vec3< Type > | p |
| Start point on the line. | |
| CL_Vec3< Type > | q |
3D line segment
A line segment has a start point and an end point
These line templates are defined for: int (CL_LineSegment3), float (CL_LineSegment3f), double (CL_LineSegment3d)
| CL_LineSegment3x< Type >::CL_LineSegment3x | ( | ) | [inline] |
| CL_LineSegment3x< Type >::CL_LineSegment3x | ( | const CL_LineSegment3x< Type > & | copy | ) | [inline] |
| CL_LineSegment3x< Type >::CL_LineSegment3x | ( | const CL_Vec3< Type > & | point_p, | |
| const CL_Vec3< Type > & | point_q | |||
| ) | [inline] |
| CL_Vec3<Type> CL_LineSegment3x< Type >::get_midpoint | ( | ) | const [inline] |
Get the midpoint of this line.
| bool CL_LineSegment3x< Type >::operator!= | ( | const CL_LineSegment3x< Type > & | line | ) | const [inline] |
!= operator.
| CL_LineSegment3x<Type>& CL_LineSegment3x< Type >::operator= | ( | const CL_LineSegment3x< Type > & | copy | ) | [inline] |
= operator.
| bool CL_LineSegment3x< Type >::operator== | ( | const CL_LineSegment3x< Type > & | line | ) | const [inline] |
== operator.
| Type CL_LineSegment3x< Type >::point_distance | ( | const CL_Vec3< Type > & | point, | |
| CL_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 |
| CL_Vec3<Type> CL_LineSegment3x< Type >::p |
Start point on the line.
Referenced by CL_LineSegment3x< int >::CL_LineSegment3x(), CL_LineSegment3x< int >::get_midpoint(), CL_LineSegment3x< int >::operator!=(), CL_LineSegment3x< int >::operator=(), and CL_LineSegment3x< int >::operator==().
| CL_Vec3<Type> CL_LineSegment3x< Type >::q |
1.7.1