From e312cee6c99cf92f055c6f56b58fafbf780259a7 Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Mon, 24 Apr 2023 11:57:14 -0600 Subject: [PATCH] protected static methods in BaseChallengeFactory --- js/linegame/model/BaseChallengeFactory.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/linegame/model/BaseChallengeFactory.ts b/js/linegame/model/BaseChallengeFactory.ts index 8fbe98e0..b211b26e 100644 --- a/js/linegame/model/BaseChallengeFactory.ts +++ b/js/linegame/model/BaseChallengeFactory.ts @@ -62,7 +62,7 @@ export default abstract class BaseChallengeFactory { /** * Picks a point that keeps the slope indicator on the graph. */ - public static choosePointForSlope( slope: Fraction, graphXRange: Range, graphYRange: Range ): Vector2 { + protected static choosePointForSlope( slope: Fraction, graphXRange: Range, graphYRange: Range ): Vector2 { const rise = slope.numerator; const run = slope.denominator; @@ -86,7 +86,7 @@ export default abstract class BaseChallengeFactory { * Picks a point (x1,x2) on the graph that results in the slope indicator (x2,y2) being off the graph. * This forces the user to invert the slope. */ - public static choosePointForSlopeInversion( slope: Fraction, graphXRange: Range, graphYRange: Range ): Vector2 { + protected static choosePointForSlopeInversion( slope: Fraction, graphXRange: Range, graphYRange: Range ): Vector2 { const rise = slope.numerator; const run = slope.denominator;