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

A Plane3 is a plane in space, with the equation: Ax + By + Cz + D = 0. More...

Public Member Functions

 Plane3 ()
 
 Plane3 (const Coord3 &, const Coord3 &, const Coord3 &)
 
 Plane3 (const Coord3 &vec1, const Coord3 &, bool twovectors)
 
 Plane3 (const TypeSet< Coord3 > &)
 
 Plane3 (double, double, double, double)
 
double distanceToPoint (const Coord3 &, bool wichside=false) const
 
Coord3 getProjection (const Coord3 &pos)
 
bool intersectWith (const Line3 &, Coord3 &) const
 
bool intersectWith (const Plane3 &, Line3 &) const
 
Coord3 normal () const
 
bool onSameSide (const Coord3 &p1, const Coord3 &p2)
 
bool operator!= (const Plane3 &) const
 
bool operator== (const Plane3 &) const
 
void set (const Coord3 &, const Coord3 &, const Coord3 &)
 
void set (const Coord3 &vec1, const Coord3 &, bool twovectors)
 
float set (const TypeSet< Coord3 > &)
 

Public Attributes

double A_
 
double B_
 
double C_
 
double D_
 

Detailed Description

A Plane3 is a plane in space, with the equation: Ax + By + Cz + D = 0.

<>

Constructor & Destructor Documentation

◆ Plane3() [1/5]

Plane3::Plane3 ( )

◆ Plane3() [2/5]

Plane3::Plane3 ( double  ,
double  ,
double  ,
double   
)

◆ Plane3() [3/5]

Plane3::Plane3 ( const Coord3 vec1,
const Coord3 ,
bool  twovectors 
)
Parameters
vec1First vector
twovectorsSpecifies if the second argument is a vector or a position

◆ Plane3() [4/5]

Plane3::Plane3 ( const Coord3 ,
const Coord3 ,
const Coord3  
)

◆ Plane3() [5/5]

Plane3::Plane3 ( const TypeSet< Coord3 > &  )

Member Function Documentation

◆ distanceToPoint()

double Plane3::distanceToPoint ( const Coord3 ,
bool  wichside = false 
) const
Parameters
wichsideif true, the distance along the normal will be returned, wich can be negative.

◆ getProjection()

Coord3 Plane3::getProjection ( const Coord3 pos)

◆ intersectWith() [1/2]

bool Plane3::intersectWith ( const Line3 ,
Coord3  
) const

Returns true if the plane intersects with the line. If it returns true, the Coord3 is set

◆ intersectWith() [2/2]

bool Plane3::intersectWith ( const Plane3 ,
Line3  
) const

Returns true if the planes intersects. If it returns true, the Line3 is set

◆ normal()

Coord3 Plane3::normal ( ) const
inline

◆ onSameSide()

bool Plane3::onSameSide ( const Coord3 p1,
const Coord3 p2 
)

Check p1, p2 are on the same side of the plane or not, will return true if one is on the plane.

◆ operator!=()

bool Plane3::operator!= ( const Plane3 ) const

◆ operator==()

bool Plane3::operator== ( const Plane3 ) const

◆ set() [1/3]

void Plane3::set ( const Coord3 ,
const Coord3 ,
const Coord3  
)

◆ set() [2/3]

void Plane3::set ( const Coord3 vec1,
const Coord3 ,
bool  twovectors 
)
Parameters
vec1First vector
twovectorsSpecifies if the second argument is a vector or a position

◆ set() [3/3]

float Plane3::set ( const TypeSet< Coord3 > &  )
Returns
a value between 0-1 that indicates how well the points fit to a plane. 1 = perfect fit 0 = no fit

Member Data Documentation

◆ A_

double Plane3::A_

◆ B_

double Plane3::B_

◆ C_

double Plane3::C_

◆ D_

double Plane3::D_

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