Example #1
0
        private void GetMousePositionOnPlaneButton_OnClick(object sender, RoutedEventArgs e)
        {
            Point3D intersectionPoint;
            bool    hasIntersection = _selectedCamera.GetMousePositionOnPlane(new Point(100, 100), new Point3D(0, 0, 0), new Vector3D(0, 1, 0), out intersectionPoint);

            MessageBox.Show(string.Format(System.Globalization.CultureInfo.InvariantCulture,
                                          "Calling:\r\nGetMousePositionOnPlane(new Point(100, 100), new Point3D(0, 0, 0), new Vector3D(0, 1, 0)):\r\n\r\nResult:\r\nintersectionPoint: {0:0.0}",
                                          intersectionPoint));
        }