Exemplo n.º 1
0
        private static float CalculateHeightScale(DummyLine line, float height)
        {
            if (Utils.ApproximatelyZero(height, line.height))
            {
                return(1f);
            }

            return(height / line.height);
        }
Exemplo n.º 2
0
        /// ======================================================================

        private static float CalculateLengthScale(DummyLine line, float length)
        {
            if (Utils.ApproximatelyZero(length, line.length))
            {
                return(1f);
            }

            return(length / line.length);
        }