WRAPPER_API Ellipsoid()
WRAPPER_API Ellipsoid(const Ellipsoid &source)
The Ellipsoid constructor creates a new instance of the Ellipsoid class. There are two signatures for this constructor. The default constructor takes no arguments and produces an Ellipsoid that has a SemiMajor radius of one meter, a SemiMinor radius of 1 meter, and InvFlatDefinitive set to true. The second constructor is a copy-constructor, which produces an Ellipsoid with a value equal to the Ellipsoid passed as argument.
void Ellipsoid_Ellipsoid(GEOCALCPBW_NAMESPACE::DataSource & data)
{
GEOCALCPBW_NAMESPACE::Ellipsoid ell;
GEOCALCPBW_NAMESPACE::LinearValue semiMaj;
semiMaj.set_InMeters(6378137);
ell.set_SemiMajor(semiMaj);
ell.set_InvFlatDefinitive(true);
ell.set_InverseFlattening(298.257223563);
GEOCALCPBW_NAMESPACE::GeodeticPoint * fromPt = data.GetGeodeticPoint(L"BMG", L"GEODETIC_POINT_DEGREES");
GEOCALCPBW_NAMESPACE::GeodeticPoint * toPt = data.GetGeodeticPoint(L"BMG", L"GEODETIC_POINT_DEGREES");
fromPt->set_InUnits(-77.36, 45.45);
double azimuth = 1.004;
double geodesic = 1336;
if(! ell.ComputeDirect(*fromPt, geodesic, azimuth, *toPt))
{
AfxMessageBox("ComputeDirect failed");
}
delete fromPt;
delete toPt;
}