The transformation correction.

It should fill with 0.0 instead of Number.NAN if the parameter does not exist, as parsers does.

const correction = new Correction(1., 2., 3.);
console.log(correction.latitude); // prints 1.0
console.log(correction.longitude); // prints 2.0
console.log(correction.altitude); // prints 3.0

Constructors

  • Makes a Correction.

    Parameters

    • latitude: number

      The latitude correction [deg].

    • longitude: number

      The latitude correction [deg].

    • altitude: number

      The altitude correction [m].

    Returns Correction

    const correction = new Correction(1., 2., 3.);
    console.log(correction.latitude); // prints 1.0
    console.log(correction.longitude); // prints 2.0
    console.log(correction.altitude); // prints 3.0

Accessors

  • get altitude(): number
  • The altitude correction [m].

    Returns number

    const corr = new Correction(1., 2., 3.);
    console.log(corr.altitude); // Prints 3.0
  • get latitude(): number
  • The latitude correction [deg].

    Returns number

    const corr = new Correction(1., 2., 3.);
    console.log(corr.latitude); // Prints 1.0
  • get longitude(): number
  • The longitude correction [deg].

    Returns number

    const corr = new Correction(1., 2., 3.);
    console.log(corr.longitude); // Prints 2.0

Methods

  • Returns true is other is equal to this.

    Parameters

    • other: unknown

    Returns other is Correction

    const corr = new Correction(0., 0., 1.);
    console.log(corr.eq(new Correction(0., 0., 1.))); // Prints true
    console.log(corr.eq(new Correction(0., 0., 0.))); // Prints false
  • Returns Math.hypot(this.latitude, this.longitude).

    Returns number

    const corr = new Correction(1., 1., 0.);
    console.log(corr.horizontal()); // Prints 1.4142135623730951
  • Returns true is other is not equal to this.

    Parameters

    • other: unknown

    Returns boolean

    const corr = new Correction(0., 0., 1.);
    console.log(corr.ne(new Correction(0., 0., 1.))); // Prints false
    console.log(corr.ne(new Correction(0., 0., 0.))); // Prints true