Ejemplo n.º 1
0
        public void TestCalculateScaleWithInvalidZValue()
        {
            // initialised mock values
            Vec3d mockTvec = new Vec3d(
                -0.183446751848711,
                -0.24590448762994,
                0.0
                );
            float mockMarkerLength  = 0.045f;
            float mockOriginalScale = 100f;
            // checked correct value for mock parameters
            float expectedScale = mockOriginalScale;

            float actualScale = Utilities.CalculateScale(mockTvec, mockMarkerLength, mockOriginalScale);

            Assert.AreEqual(expectedScale, actualScale);
        }