Skip to content

Commit

Permalink
protected static methods in BaseChallengeFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Apr 24, 2023
1 parent 9d70c81 commit e312cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/linegame/model/BaseChallengeFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit e312cee

Please sign in to comment.