#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. | |
| 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 |
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)
|
|||||||||
|
|
|
||||||||||
|
|
|
||||||||||||||||
|
|
|
|||||||||
|
Get the midpoint of this line.
|
|
||||||||||
|
!= operator.
|
|
||||||||||
|
= operator.
|
|
||||||||||
|
== operator.
|
|
||||||||||||||||
|
Calculate the distance from a line segment to a point.
|
|
|||||
|
Start point on the line.
|
|
|||||
|
|
1.4.6