Line between two points. More...
#include <Line.hh>
Public Member Functions | |
Constructor | |
Line () | |
Default constructor. More... | |
Line (Vector_< Value_ > const &point_1, Vector_< Value_ > const &point_2) | |
Constructor accepting two vectors. More... | |
Getter | |
Vector_< Value_ > const & | Point_1 () const |
Vector of first point. More... | |
Vector_< Value_ > | Point_1 () |
Vector of first point. More... | |
Vector_< Value_ > const & | Point_2 () const |
Vector of second point. More... | |
Vector_< Value_ > | Point_2 () |
Vector of second point. More... | |
Distances | |
Value_ | DistanceToSegment (Vector_< Value_ > const &point) const |
Distance of point to line segment spanned between the two vectors. More... | |
Value_ | DistanceToLine (Vector_< Value_ > const &point) const |
Distance of point to the line. More... | |
Line vector | |
Vector_< Value_ > | Vector () const |
Vector between the two points. More... | |
Value_Square | Mag2 () const |
Square of the magnitude of the vector. More... | |
Value_ | Mag () const |
Magnitude of the vector. More... | |
Relation to a point | |
Vector_< Value_ > | Vector_1 (Vector_< Value_ > const &point) const |
vector between a point and the first point More... | |
Vector_< Value_ > | Vector_2 (Vector_< Value_ > const &point) const |
vector between a point and the second point More... | |
Value_ | Distance_1 (Vector_< Value_ > const &point) const |
Distance between the point and the first point. More... | |
Value_ | Distance_2 (Vector_< Value_ > const &point) const |
Distance between the point and the second point. More... | |
double | Paramter (Vector_< Value_ > const &point) const |
Parameter along the line segment between the two points. More... | |
Vector_< Value_ > | Projection (Vector_< Value_ > const &point) const |
Projection of the point onto the line. More... | |
Friends | |
auto & | operator<< (std::ostream &stream, Line const &line) |
Output stream operator. More... | |
Detailed Description
template<template< typename > class Vector_, typename Value_>
class boca::Line< Vector_, Value_ >
Line between two points.
Constructor & Destructor Documentation
template<template< typename > class Vector_, typename Value_>
|
inline |
Default constructor.
template<template< typename > class Vector_, typename Value_>
|
inline |
Constructor accepting two vectors.
Member Function Documentation
template<template< typename > class Vector_, typename Value_>
|
inline |
Distance between the point and the first point.
template<template< typename > class Vector_, typename Value_>
|
inline |
Distance between the point and the second point.
template<template< typename > class Vector_, typename Value_>
|
inline |
Distance of point to the line.
template<template< typename > class Vector_, typename Value_>
|
inline |
Distance of point to line segment spanned between the two vectors.
template<template< typename > class Vector_, typename Value_>
|
inline |
Magnitude of the vector.
template<template< typename > class Vector_, typename Value_>
|
inline |
Square of the magnitude of the vector.
template<template< typename > class Vector_, typename Value_>
|
inline |
Parameter along the line segment between the two points.
template<template< typename > class Vector_, typename Value_>
|
inline |
Vector of first point.
template<template< typename > class Vector_, typename Value_>
|
inline |
Vector of first point.
template<template< typename > class Vector_, typename Value_>
|
inline |
Vector of second point.
template<template< typename > class Vector_, typename Value_>
|
inline |
Vector of second point.
template<template< typename > class Vector_, typename Value_>
|
inline |
Projection of the point onto the line.
template<template< typename > class Vector_, typename Value_>
|
inline |
Vector between the two points.
template<template< typename > class Vector_, typename Value_>
|
inline |
vector between a point and the first point
template<template< typename > class Vector_, typename Value_>
|
inline |
vector between a point and the second point
Friends And Related Function Documentation
template<template< typename > class Vector_, typename Value_>
|
friend |
Output stream operator.
The documentation for this class was generated from the following file:
- boca/math/Line.hh