3D line segment - Double More...

#include <line_segment.h>

+ Inheritance diagram for clan::LineSegment3d:

Public Member Functions

 LineSegment3d ()
 
 LineSegment3d (const LineSegment3x< double > &copy)
 
 LineSegment3d (const Vec3< double > &point_p, const Vec3< double > &point_q)
 
Attributes
Vec3< double > get_midpoint () const
 Get the midpoint of this line. More...
 
double point_distance (const Vec3< double > &point, Vec3< double > &dest_intercept) const
 Calculate the distance from a line segment to a point. More...
 
Operators
bool operator== (const LineSegment3x< double > &line) const
 == operator. More...
 
bool operator!= (const LineSegment3x< double > &line) const
 != operator. More...
 

Public Attributes

Vec3< double > p
 Start point on the line. More...
 
Vec3< double > q
 

Detailed Description

3D line segment - Double

A line segment has a start point and an end point

Member Function Documentation

Vec3<double > clan::LineSegment3x< double >::get_midpoint ( ) const
inlineinherited

Get the midpoint of this line.

Returns
The midpoint
bool clan::LineSegment3x< double >::operator!= ( const LineSegment3x< double > &  line) const
inlineinherited

!= operator.

bool clan::LineSegment3x< double >::operator== ( const LineSegment3x< double > &  line) const
inlineinherited

== operator.

double clan::LineSegment3x< double >::point_distance ( const Vec3< double > &  point,
Vec3< double > &  dest_intercept 
) const
inherited

Calculate the distance from a line segment to a point.

Parameters
point= The point
dest_intercept= On Return: The point on the line closest to the point
Returns
The Distance

Member Data Documentation

Vec3<double > clan::LineSegment3x< double >::p
inherited

Start point on the line.

Vec3<double > clan::LineSegment3x< double >::q
inherited

The documentation for this class was generated from the following file: