3D line segment - Double More...
#include <line_segment.h>
Public Member Functions | |
CL_LineSegment3d () | |
CL_LineSegment3d (const CL_Vec3< double > &point_p, const CL_Vec3< double > &point_q) | |
CL_LineSegment3d (const CL_LineSegment3x< double > ©) | |
Attributes | |
CL_Vec3< double > | get_midpoint () const |
Get the midpoint of this line. | |
double | point_distance (const CL_Vec3< double > &point, CL_Vec3< double > &dest_intercept) const |
Calculate the distance from a line segment to a point. | |
Operators | |
bool | operator== (const CL_LineSegment3x< double > &line) const |
== operator. | |
bool | operator!= (const CL_LineSegment3x< double > &line) const |
!= operator. | |
Public Attributes | |
CL_Vec3< double > | p |
Start point on the line. | |
CL_Vec3< double > | q |
3D line segment - Double
A line segment has a start point and an end point
CL_LineSegment3d::CL_LineSegment3d | ( | ) | [inline] |
CL_LineSegment3d::CL_LineSegment3d | ( | const CL_LineSegment3x< double > & | copy | ) | [inline] |
CL_LineSegment3d::CL_LineSegment3d | ( | const CL_Vec3< double > & | point_p, | |
const CL_Vec3< double > & | point_q | |||
) | [inline] |
CL_Vec3<double > CL_LineSegment3x< double >::get_midpoint | ( | ) | const [inline, inherited] |
Get the midpoint of this line.
bool CL_LineSegment3x< double >::operator!= | ( | const CL_LineSegment3x< double > & | line | ) | const [inline, inherited] |
!= operator.
bool CL_LineSegment3x< double >::operator== | ( | const CL_LineSegment3x< double > & | line | ) | const [inline, inherited] |
== operator.
double CL_LineSegment3x< double >::point_distance | ( | const CL_Vec3< double > & | point, | |
CL_Vec3< double > & | dest_intercept | |||
) | const [inherited] |
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<double > CL_LineSegment3x< double >::p [inherited] |
Start point on the line.
CL_Vec3<double > CL_LineSegment3x< double >::q [inherited] |