An official website of the United States government
Here’s how you know
Official websites use .gov
A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS
A
lock
( ) or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
Isis Developer Reference
|
Define a generic Y/X container. More...
#include <GruenTypes.h>
Public Member Functions | |
Coordinate () | |
Coordinate (double y, double x) | |
Coordinate (const Chip &chip) | |
~Coordinate () | |
void | setLatLon (const double &latitude, const double &longitude) |
Use Latitude/Longitude interface. | |
void | setLineSamp (const double &line, const double &sample) |
Use the Line/Sample interface. | |
Coordinate & | operator+= (const Coordinate &other) |
Add a point to this point. | |
Coordinate & | operator-= (const Coordinate &other) |
Subtract a point from this point. | |
double | getDistance (const Coordinate &pntA=Coordinate(0.0, 0.0)) const |
Computes the distance from this point and the point provided. | |
bool | isValid () const |
Check for goodness. | |
double | getLatitude () const |
double | getLongitude () const |
double | getLine () const |
double | getSample () const |
Public Attributes | |
double | m_y |
double | m_x |
Define a generic Y/X container.
This generic container is designed to be used as a line/sample or a latitude/longitude container. It can be used to contain other cartesian coordinates if desired.
The default initialization sets the points the ISIS Null pixel value indicating it has not been initialized or can signal an invalid point if either one of the values is not initialized to something other than an ISIS special pixel.
Operators are defined to ease performing simple add/subtract operations.
|
inline |
References m_x, m_y, and Isis::Null.
Referenced by getDistance(), operator+=(), and operator-=().
|
inline |
|
inline |
Computes the distance from this point and the point provided.
References Coordinate(), m_x, and m_y.
|
inline |
References m_y.
|
inline |
References m_y.
Referenced by Isis::AffineRadio::getPoint(), Isis::SmtkMatcher::isValid(), Isis::SmtkMatcher::Register(), Isis::Gruen::Registration(), and Isis::AffineRadio::Translate().
|
inline |
References m_x.
|
inline |
References m_x.
Referenced by Isis::AffineRadio::getPoint(), Isis::SmtkMatcher::isValid(), Isis::SmtkMatcher::Register(), Isis::Gruen::Registration(), and Isis::AffineRadio::Translate().
|
inline |
Check for goodness.
References Isis::IsSpecial(), m_x, and m_y.
Referenced by Isis::SmtkMatcher::Create(), Isis::SmtkMatcher::isValid(), Isis::operator+(), operator+=(), Isis::operator-(), operator-=(), and Isis::SmtkMatcher::Register().
|
inline |
Add a point to this point.
References Coordinate(), isValid(), m_x, m_y, and Isis::Null.
|
inline |
Subtract a point from this point.
References Coordinate(), isValid(), m_x, m_y, and Isis::Null.
|
inline |
|
inline |
double Isis::Coordinate::m_x |
Referenced by Coordinate(), Coordinate(), Coordinate(), getDistance(), getLongitude(), getSample(), isValid(), Isis::operator+(), operator+=(), Isis::operator-(), operator-=(), setLatLon(), and setLineSamp().
double Isis::Coordinate::m_y |
Referenced by Coordinate(), Coordinate(), Coordinate(), getDistance(), getLatitude(), getLine(), isValid(), Isis::operator+(), operator+=(), Isis::operator-(), operator-=(), setLatLon(), and setLineSamp().