private Cartesian3 fromDegrees(double longitude, double latitude, double height, Ellipsoid ellipsoid) { longitude = YzgMath.DegreeToRadian(longitude); latitude = YzgMath.DegreeToRadian(latitude); return(this.fromRadians(longitude, latitude, height, ellipsoid)); }
private Cartographic3 fromDegrees(double longitude, double latitude, double height) { YzgMath.CheckNumber_ButweenLeftRight_EqualLeftRight(longitude, -180, 180); YzgMath.CheckNumber_ButweenLeftRight_EqualLeftRight(latitude, -90, 90); longitude = YzgMath.DegreeToRadian(longitude); latitude = YzgMath.DegreeToRadian(latitude); return(new Cartographic3(longitude, latitude, height)); }