/** * Reverse the sign of all the Bursa-Wolf parameter values * * @return void */ public function invert() { $this->translationVectors->getX()->invertValue(); $this->translationVectors->getY()->invertValue(); $this->translationVectors->getZ()->invertValue(); $this->rotationMatrix->getX()->invertValue(); $this->rotationMatrix->getY()->invertValue(); $this->rotationMatrix->getZ()->invertValue(); $this->scaleFactor = 0 - $this->scaleFactor; }
public function testSetZValue() { $matrixObject = new TranslationVectors($this->_xyz); $fluidReturn = $matrixObject->setZ($this->_distance); $matrixZValue = $matrixObject->getZ(); $this->assertTrue(is_object($matrixZValue)); $this->assertTrue(is_a($matrixZValue, 'Geodetic\\Distance')); $this->assertEquals(12345.0, $matrixZValue->getValue()); // Test fluid return object $this->assertTrue(is_object($fluidReturn)); // ... of the correct type $this->assertTrue(is_a($fluidReturn, 'Geodetic\\TranslationVectors')); }