23 #ifndef GREATCIRCLES_H
24 #define GREATCIRCLES_H
63 double endLat,
double endLong,
double width = 1.0,
bool straightLine =
false);
83 double endLat,
double endLong,
86 void draw(
bool withCross=
true,
double width = 1.0)
const;
127 double endLat,
double endLong,
GreatCircles()
constructor
misc math function & classes used by other parts of the program
void doGL(double width, VisualizationState *state, LineSegment *preceding=NULL, LineSegment *proceeding=NULL) const
Draw a meshed line.
VisualizationState * m_visualizationState
void doGLcross(int point, double cscale, VisualizationState *state) const
Specify the line to OpenGL. Must be within a glBegin/glEnd pair.
VisualizationState * m_visualizationState
void setVisualizationState(VisualizationState *visualizationState)
Set the ViewState to use for information on output projection and preview display.
StraightLineFromSphericals(double startLat, double startLong, double endLat, double endLong, VisualizationState &m_visualizationState)
Create a straight line from begin to end in spherical coordinates.
Draw great circle arcs in the fast preview.
GreatCircleArc()
Create a bad great circle arc.
hugin_utils::FDiff2D vertices[2]
std::vector< LineSegment > m_lines
void drawLineFromSpherical(double startLat, double startLong, double endLat, double endLong, double width=1.0, bool straightLine=false)
Draw the shortest segment of the great circle crossing two spherical coordinates. ...
float squareDistance(hugin_utils::FDiff2D point) const
Return the square of the minimal distance between the great circle arc and a coordinate on the panora...
void draw(bool withCross=true, double width=1.0) const
Draw the great circle arc on the fast preview.
float squareDistance(hugin_utils::FDiff2D point) const
Get the square of the minimal distance to a point.