Variable CoordConst

Coord: {
    getXIsLeftOfY(): boolean;
    setGameCoords(): void;
    setSchoolCoords(): void;
    setXisLeftOfY(value): void;
} = ...

Type declaration

  • getXIsLeftOfY:function
    • General orientation of the coordinate system. This is a global setting for this module.

      Used for the isLeftOf, isRightOf, getLeftNormal, getRightNormal functions.

      FALSE, means the normal school book coordinates with (0,0) in the lower left corner. TRUE, means the canvas or graphic coordinates with (0,0) in the upper left corner;

      Returns boolean

      Static

      Default

      "true"
      
  • setGameCoords:function
    • Returns void

      Example

      Garfunkel.setGameCoords();
      var v = new Vect(2,2);
      var w = v.clone().turnLeft().mul(0.5);
      draw(v, 'red');
      draw(w, 'green');
      print(v)
      print(w)

      Static

  • setSchoolCoords:function
    • Returns void

      Example

      Garfunkel.setSchoolCoords();
      var v = new Vect(2,2);
      var w = v.clone().turnLeft().mul(0.5);
      draw(v, 'red');
      draw(w, 'green');

      Static

  • setXisLeftOfY:function
    • Parameters

      • value: boolean

      Returns void

      Static

      Default

      "true"
      

Generated using TypeDoc