OpendTect  6.3
Public Member Functions | Public Attributes | List of all members
ParamLineBase< T > Class Template Reference
Inheritance diagram for ParamLineBase< T >:
[legend]

Public Member Functions

direction (bool normalized=true) const
 
getPoint (double t) const
 
start () const
 
stop () const
 
double closestParam (const T &point) const
 
closestPoint (const T &) const
 
double distanceToPoint (const T &) const
 
double sqDistanceToPoint (const T &) const
 
bool isOnLine (const T &pt) const
 

Public Attributes

p0_
 
dir_
 

Detailed Description

template<class T>
class ParamLineBase< T >

Base class for parametric lines, i.e. lines on the form: p = p0 + t*dir

This class is instantiated with T=Coord and T=Coord3.

Member Function Documentation

template<class T>
double ParamLineBase< T >::closestParam ( const T &  point) const
inline
Returns
the t-value of the point on the line that is closest to the given point.
template<class T>
T ParamLineBase< T >::closestPoint ( const T &  pt) const
inline
Returns
the coordinates of the point on the line that is closest to the given point.
template<class T >
T ParamLineBase< T >::direction ( bool  normalized = true) const
inline
template<class T>
double ParamLineBase< T >::distanceToPoint ( const T &  point) const
inline
template<class T >
T ParamLineBase< T >::getPoint ( double  t) const
inline
template<class T>
bool ParamLineBase< T >::isOnLine ( const T &  pt) const
inline
template<class T>
double ParamLineBase< T >::sqDistanceToPoint ( const T &  p) const
inline

Returns the squared distance, which is cheaper to compute.

template<class T>
T ParamLineBase< T >::start ( ) const
inline
template<class T>
T ParamLineBase< T >::stop ( ) const
inline

Member Data Documentation

template<class T>
T ParamLineBase< T >::dir_
template<class T>
T ParamLineBase< T >::p0_

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017