xmsinterp
1.0
|
2D Line definition. If vertical m_slope is Nan. More...
#include <AnisotropicInterpolator.h>
Public Member Functions | |
LineParameters (double a_slope, double a_intercept) | |
Constructor from slope and intercept. More... | |
LineParameters | NormalThrough (const Pt3d &a_p) const |
Get the LineParameters for a line normal to this through a point. More... | |
bool | Intersection (const LineParameters &a_other, Pt3d &a_p) const |
Get the intersection point of this and another line. More... | |
Public Attributes | |
double | m_slope |
Slope of the line. 0 is horizontal. Nan is vertical. | |
double | m_intercept |
x intercept if vertical; else, the y intercept. | |
2D Line definition. If vertical m_slope is Nan.
Definition at line 54 of file AnisotropicInterpolator.h.
xms::LineParameters::LineParameters | ( | double | a_slope, |
double | a_intercept | ||
) |
Constructor from slope and intercept.
Constructor.
[in] | a_slope | The slope. Use kVERTICAL for vertical lines. |
[in] | a_intercept | The y intercept (or x intercept for vertical). |
[in] | a_slope | The slope of the line. Use kVERTICAL for vertical lines. |
[in] | a_intercept | The x intercept if vertical; else, the y intercept. |
Definition at line 45 of file AnisotropicInterpolator.cpp.
bool xms::LineParameters::Intersection | ( | const LineParameters & | a_other, |
Pt3d & | a_p | ||
) | const |
Get the intersection point of this and another line.
Compute the intersection point of this line with another.
[in] | a_other | The other line. |
[out] | a_p | The intersection point. |
[in] | a_other | The other line's definition. |
[out] | a_p | The intersection point (if any) |
Definition at line 76 of file AnisotropicInterpolator.cpp.
References m_intercept, m_slope, xms::Pt3< T >::x, and xms::Pt3< T >::y.
Referenced by xms::AnisotropicInterpolator::GetIntersectionOfSegmentWithPoint().
LineParameters xms::LineParameters::NormalThrough | ( | const Pt3d & | a_p | ) | const |
Get the LineParameters for a line normal to this through a point.
Return the parameters for a line normal to this one through a point.
[in] | a_p | The point the normal is to run through. |
[in] | a_p | The point through which the normal line will contain. |
Definition at line 55 of file AnisotropicInterpolator.cpp.
References xms::kVERTICAL.
Referenced by xms::AnisotropicInterpolator::GetIntersectionOfSegmentWithPoint().