OpendTect
7.0
|
A ParamLine2 is a line in space, with the following equations: More...
Public Member Functions | |
ParamLine2 (const Coord &, double slope) | |
ParamLine2 (const Coord &p0, const Coord &p1) | |
ParamLine2 (double slope=0, double intcpt=0) | |
double | closestPoint (const Coord &point) const |
Coord | direction (bool normalized=true) const |
double | distanceToPoint (const Coord &) const |
Coord | getPoint (double t) const |
bool | operator== (const ParamLine2 &) const |
double | sqDistanceToPoint (const Coord &) const |
Public Attributes | |
double | alpha_ |
double | beta_ |
double | x0_ |
double | y0_ |
A ParamLine2 is a line in space, with the following equations:
x = x0 + alpha*t y = y0 + beta*t
This class will replace the Line2 in coming versions.
<>
ParamLine2::ParamLine2 | ( | double | slope = 0 , |
double | intcpt = 0 |
||
) |
ParamLine2::ParamLine2 | ( | const Coord & | , |
double | slope | ||
) |
Normalizes so that t=0 is p0 and t=1 is p1
double ParamLine2::closestPoint | ( | const Coord & | point | ) | const |
Coord ParamLine2::direction | ( | bool | normalized = true | ) | const |
double ParamLine2::distanceToPoint | ( | const Coord & | ) | const |
Coord ParamLine2::getPoint | ( | double | t | ) | const |
bool ParamLine2::operator== | ( | const ParamLine2 & | ) | const |
double ParamLine2::sqDistanceToPoint | ( | const Coord & | ) | const |
double ParamLine2::alpha_ |
double ParamLine2::beta_ |
double ParamLine2::x0_ |
double ParamLine2::y0_ |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024