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