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