clan::LineSegment3d Class Reference - ClanLib SDK
Description: clan::LineSegment3d Class Reference

Public Member Functions | List of all members
clan::LineSegment3d Class Reference
clanCore Math

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)
Public Member Functions inherited from clan::LineSegment3x< double >
| LineSegment3x ()
Vec3< double > | get_midpoint () const
| Get the midpoint of this line.
bool | operator!= (const LineSegment3x< double > &line) const
| != operator.
LineSegment3x< double > & | operator= (const LineSegment3x< double > &copy)=default
| = operator.
bool | operator== (const LineSegment3x< double > &line) const
| == operator.
double | point_distance (const Vec3< double > &point, Vec3< double > &dest_intercept) const
| Calculate the distance from a line segment to a point.

## Additional Inherited Members
Public Attributes inherited from clan::LineSegment3x< double >
Vec3< double > | p
| Start point on the line.
Vec3< double > | q

## Detailed Description

3D line segment - Double

A line segment has a start point and an end point

## Constructor & Destructor Documentation

## ◆ LineSegment3d() [1/3]

clan::LineSegment3d::LineSegment3d | ( |  | ) |
| inline

References clan::LineSegment3x< double >::LineSegment3x().

## ◆ LineSegment3d() [2/3]

clan::LineSegment3d::LineSegment3d | ( | const LineSegment3x< double > & | copy | ) |
| inline

References clan::LineSegment3x< double >::LineSegment3x().

## ◆ LineSegment3d() [3/3]

clan::LineSegment3d::LineSegment3d | ( | const Vec3< double > & | point_p,
|  | const Vec3< double > & | point_q )
| inline

References clan::LineSegment3x< double >::LineSegment3x().

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

- line_segment.h