OpendTect  7.0
Public Member Functions | Public Attributes | List of all members
Line3 Class Reference

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

Public Member Functions

 Line3 ()
 
 Line3 (const Coord3 &, const Vector3 &)
 
 Line3 (double x0, double y0, double z0, double alpha, double beta, double gamma)
 
double closestPoint (const Coord3 &point) const
 
void closestPoint (const Line3 &line, double &t_this, double &t_line) const
 
Vector3 direction (bool normalize=true) const
 
double distanceToPoint (const Coord3 &point) const
 
Coord3 getPoint (double t) const
 
bool intersectWith (const Plane3 &, double &t) const
 
double sqDistanceToPoint (const Coord3 &point) const
 

Public Attributes

double alpha_
 
double beta_
 
double gamma_
 
double x0_
 
double y0_
 
double z0_
 

Detailed Description

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

x = x0 + alpha*t y = y0 + beta*t z = z0 + gamma*t

<>

Constructor & Destructor Documentation

◆ Line3() [1/3]

Line3::Line3 ( )

◆ Line3() [2/3]

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

◆ Line3() [3/3]

Line3::Line3 ( const Coord3 ,
const Vector3  
)

Member Function Documentation

◆ closestPoint() [1/2]

double Line3::closestPoint ( const Coord3 point) const
Returns
the point on the line that is closest to the given point

◆ closestPoint() [2/2]

void Line3::closestPoint ( 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

◆ direction()

Vector3 Line3::direction ( bool  normalize = true) const
inline

◆ distanceToPoint()

double Line3::distanceToPoint ( const Coord3 point) const

◆ getPoint()

Coord3 Line3::getPoint ( double  t) const

◆ intersectWith()

bool Line3::intersectWith ( const Plane3 ,
double &  t 
) const

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

◆ sqDistanceToPoint()

double Line3::sqDistanceToPoint ( const Coord3 point) const

Member Data Documentation

◆ alpha_

double Line3::alpha_

◆ beta_

double Line3::beta_

◆ gamma_

double Line3::gamma_

◆ x0_

double Line3::x0_

◆ y0_

double Line3::y0_

◆ z0_

double Line3::z0_

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