Example #1
0
        public bool TryFetchLatLongAltitudeForPositioner(Positioner positioner, out LatLongAltitude latLongAlt)
        {
            LatLongAltitudeInterop latLongAltInterop = new LatLongAltitudeInterop();

            latLongAlt = new LatLongAltitude();

            var success = NativePositionerApi_TryFetchLatLongAltitude(NativePluginRunner.API, positioner.Id, out latLongAltInterop);

            if (success)
            {
                latLongAlt = latLongAltInterop.ToLatLongAltitude();
                return(true);
            }

            return(false);
        }
 internal static LatLongAltitude ToLatLongAltitude(this LatLongAltitudeInterop interop)
 {
     return(new LatLongAltitude(interop.LatitudeDegrees, interop.LongitudeDegrees, interop.Altitude));
 }
 private static extern bool NativeBuildingsApi_TryFindIntersectionAndNormalWithBuilding(IntPtr ptr, ref DoubleVector3 rayOrigin, ref DoubleVector3 rayDirection, out LatLongAltitudeInterop out_intersectionPoint, out DoubleVector3 out_intersectionNormal);