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