get_SemiMajor Method

WRAPPER_API LinearValue &get_SemiMajor()

WRAPPER_API const LinearValue &get_SemiMajor() const

 

Description

The get_SemiMajor method returns the LinearValue that gives the semi-major radius for this Ellipsoid.

 

Example

void Ellipsoid_getSemiMajor(GEOCALCPBW_NAMESPACE::Ellipsoid & ell)

{

char temp[256];

CString description;

description += "Ellipsoid: ";

description += ell.get_Name();

description += "\n";

sprintf(temp, "Eccentricity = %f", ell.get_Eccentricity());

description += temp;

description += "\n";

sprintf(temp, "Eccentricity Squared = %f", ell.get_EccentricitySquared());

description += temp;

description += "\n";

sprintf(temp, "Inverse Flattening = %f", ell.get_InverseFlattening());

description += temp;

description += "\n";

sprintf(temp, "Semi-Major Radius = %f meters", ell.get_SemiMajor().get_InMeters());

description += temp;

description += "\n";

sprintf(temp, "Semi-Minor Radius = %f meters", ell.get_SemiMinor().get_InMeters());

description += temp;

AfxMessageBox(description);

}