コード例 #1
0
                public void TestPointToPlane_PointToBackOfPlane()
                {
                    Point staticPoint = new Point(new Vector3(-5, -3, 6));

                    float expected = -5;
                    float actual   = DistanceMetrics.PointToPlane(staticPoint, modelPoint);

                    Assert.AreEqual(expected, actual, tolerance);
                }
コード例 #2
0
                public void TestPointToPlane_PointInFrontOfPlane()
                {
                    Point staticPoint = new Point(new Vector3(3, 5, 7));

                    float expected = 3;
                    float actual   = DistanceMetrics.PointToPlane(staticPoint, modelPoint);

                    Assert.AreEqual(expected, actual, tolerance);
                }