pPlot.getLongitude()?

Jeckel

Great Reverend
Joined
Nov 16, 2005
Messages
1,637
Location
Peoria, IL
K, well I found pPlot.getLatitude(), but there doesn't seem to be a pPlot.getLongitude() method. Is there a special way to get this besides just grabing it from the CyPlot object or can you not get that value?
 
It only works after you've built the Royal Observatory at Greenwich.

But, more seriously, it's just not defined.
 
Code:
int CyPlot::getLatitude()																						
{
	return m_pPlot ? m_pPlot->getLatitude() : -1;
}
Code:
int CvPlot::getLatitude() const
{
	int iLatitude;

	if (GC.getMapINLINE().isWrapXINLINE() || !(GC.getMapINLINE().isWrapYINLINE()))
	{
		iLatitude = ((getY_INLINE() * 100) / GC.getMapINLINE().getGridHeightINLINE());
	}
	else
	{
		iLatitude = ((getX_INLINE() * 100) / GC.getMapINLINE().getGridWidthINLINE());
	}

	iLatitude = ((iLatitude * (GC.getMapINLINE().getTopLatitude() - GC.getMapINLINE().getBottomLatitude())) / 100);

	return abs(iLatitude + GC.getMapINLINE().getBottomLatitude());
}

Matze
 
Back
Top Bottom