The transformation correction.
It should fill with 0.0 instead of Number.NAN if the parameter does not exist, as parsers does.
0.0
Number.NAN
const correction = new Correction(1., 2., 3.);console.log(correction.latitude); // prints 1.0console.log(correction.longitude); // prints 2.0console.log(correction.altitude); // prints 3.0 Copy
const correction = new Correction(1., 2., 3.);console.log(correction.latitude); // prints 1.0console.log(correction.longitude); // prints 2.0console.log(correction.altitude); // prints 3.0
Makes a Correction.
The latitude correction [deg].
The altitude correction [m].
const corr = new Correction(1., 2., 3.);console.log(corr.altitude); // Prints 3.0 Copy
const corr = new Correction(1., 2., 3.);console.log(corr.altitude); // Prints 3.0
const corr = new Correction(1., 2., 3.);console.log(corr.latitude); // Prints 1.0 Copy
const corr = new Correction(1., 2., 3.);console.log(corr.latitude); // Prints 1.0
The longitude correction [deg].
const corr = new Correction(1., 2., 3.);console.log(corr.longitude); // Prints 2.0 Copy
const corr = new Correction(1., 2., 3.);console.log(corr.longitude); // Prints 2.0
Returns true is other is equal to this.
true
other
this
const corr = new Correction(0., 0., 1.);console.log(corr.eq(new Correction(0., 0., 1.))); // Prints trueconsole.log(corr.eq(new Correction(0., 0., 0.))); // Prints false Copy
const corr = new Correction(0., 0., 1.);console.log(corr.eq(new Correction(0., 0., 1.))); // Prints trueconsole.log(corr.eq(new Correction(0., 0., 0.))); // Prints false
Returns Math.hypot(this.latitude, this.longitude).
Math.hypot(this.latitude, this.longitude)
const corr = new Correction(1., 1., 0.);console.log(corr.horizontal()); // Prints 1.4142135623730951 Copy
const corr = new Correction(1., 1., 0.);console.log(corr.horizontal()); // Prints 1.4142135623730951
Returns true is other is not equal to this.
const corr = new Correction(0., 0., 1.);console.log(corr.ne(new Correction(0., 0., 1.))); // Prints falseconsole.log(corr.ne(new Correction(0., 0., 0.))); // Prints true Copy
const corr = new Correction(0., 0., 1.);console.log(corr.ne(new Correction(0., 0., 1.))); // Prints falseconsole.log(corr.ne(new Correction(0., 0., 0.))); // Prints true
The transformation correction.
It should fill with
0.0instead ofNumber.NANif the parameter does not exist, as parsers does.Example