SHA256
forked from ADOFAIEditorForum/ADOFAIRenderer
Make Every Class Internal
This commit is contained in:
38 files changed
+50
-51
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace ADOFAIRenderer.Util
|
||||
{
|
||||
public class RationalUtil
|
||||
internal static class RationalUtil
|
||||
{
|
||||
public static (int Numerator, int Denominator) Double2MaxPrecisionInt(double value,
|
||||
int maxDenominator = 100000000)
|
||||
@@ -11,7 +11,6 @@ namespace ADOFAIRenderer.Util
|
||||
if (value == 0.0) return (0, 1);
|
||||
|
||||
var isNegative = value < 0;
|
||||
var sign = isNegative ? -1.0 : 1.0;
|
||||
var target = Math.Abs(value);
|
||||
// 2. 스턴-브로코 / 연속분수 경계값 초기화
|
||||
// 아래 두 행의 분수 (0/1, 1/0) 사이에서 시작하여 타겟에 가까워집니다.
|
||||
|
||||
Reference in new issue
Block a user