#include <line_segment.h>
Inheritance diagram for CL_LineSegment3:

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) | |
| CL_Vec3< int > | get_midpoint () const |
| Get the midpoint of this line. | |
| int | point_distance (const CL_Vec3< int > &point, CL_Vec3< int > &dest_intercept) const |
| Calculate the distance from a line segment to a point. | |
| bool | operator== (const CL_LineSegment3x< int > &line) const |
| == operator. | |
| bool | operator!= (const CL_LineSegment3x< int > &line) const |
| != operator. | |
Public Attributes | |
| CL_Vec3< int > | p |
| Start point on the line. | |
| CL_Vec3< int > | q |
A line segment has a start point and an end point
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
Get the midpoint of this line.
|
|
|
!= operator.
|
|
|
== operator.
|
|
||||||||||||
|
Calculate the distance from a line segment to a point.
|
|
|
Start point on the line.
|
|
|
|
1.4.6