OpendTect  6.3
Public Member Functions | Static Public Member Functions | List of all members
Line3 Class Reference

A Line3 is a line in space, with the following equations: More...

Inheritance diagram for Line3:
[legend]

Public Member Functions

 Line3 ()
 
 Line3 (double x0, double y0, double z0, double alpha, double beta, double gamma)
 
 Line3 (const Coord3 &, const Coord3 &)
 
bool intersectWith (const Plane3 &, double &t) const
 
void closestPointToLine (const Line3 &line, double &t_this, double &t_line) const
 
- Public Member Functions inherited from ParamLineBase< Coord3 >
Coord3 direction (bool normalized=true) const
 
Coord3 getPoint (double t) const
 
Coord3 start () const
 
Coord3 stop () const
 
double closestParam (const Coord3 &point) const
 
Coord3 closestPoint (const Coord3 &) const
 
double distanceToPoint (const Coord3 &) const
 
double sqDistanceToPoint (const Coord3 &) const
 
bool isOnLine (const Coord3 &pt) const
 

Static Public Member Functions

static Line3 fromPosAndDir (const Coord3 &, const Vector3 &)
 

Additional Inherited Members

- Public Attributes inherited from ParamLineBase< Coord3 >
Coord3 p0_
 
Coord3 dir_
 

Detailed Description

A Line3 is a line in space, with the following equations:

p(x,y,z) = p0 + dir * t

Constructor & Destructor Documentation

Line3::Line3 ( )
Line3::Line3 ( double  x0,
double  y0,
double  z0,
double  alpha,
double  beta,
double  gamma 
)
Line3::Line3 ( const Coord3 ,
const Coord3  
)

Member Function Documentation

void Line3::closestPointToLine ( const Line3 line,
double &  t_this,
double &  t_line 
) const
Returns
the t for the point point on the line that is closest to the given line
static Line3 Line3::fromPosAndDir ( const Coord3 ,
const Vector3  
)
static
bool Line3::intersectWith ( const Plane3 ,
double &  t 
) const

Calculates the intersection between the line and the plane. If success, it sets t.


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