ClanLib
2.3.7
|
3D line segment More...
#include <line_segment.h>
Public Member Functions | |
CL_LineSegment3x () | |
CL_LineSegment3x (const CL_LineSegment3x< Type > ©) | |
CL_LineSegment3x (const CL_Vec3< Type > &point_p, const CL_Vec3< Type > &point_q) | |
Attributes | |
CL_Vec3< Type > | get_midpoint () const |
Get the midpoint of this line. More... | |
Type | point_distance (const CL_Vec3< Type > &point, CL_Vec3< Type > &dest_intercept) const |
Calculate the distance from a line segment to a point. More... | |
Operators | |
CL_LineSegment3x< Type > & | operator= (const CL_LineSegment3x< Type > ©) |
= operator. More... | |
bool | operator== (const CL_LineSegment3x< Type > &line) const |
== operator. More... | |
bool | operator!= (const CL_LineSegment3x< Type > &line) const |
!= operator. More... | |
Public Attributes | |
CL_Vec3< Type > | p |
Start point on the line. More... | |
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)
|
inline |
|
inline |
|
inline |
|
inline |
Get the midpoint of this line.
|
inline |
!= operator.
|
inline |
= operator.
|
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 |