コード例 #1
0
        private static float CalculateHeightScale(DummyBoxBuilder builder, float height)
        {
            if (Utils.ApproximatelyZero(height, builder.height))
            {
                return(1f);
            }

            return(height / builder.height);
        }
コード例 #2
0
        /// ======================================================================

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

            return(length / builder.length);
        }