/** * 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 testSetXValue() { $matrixObject = new TranslationVectors($this->_xyz); $fluidReturn = $matrixObject->setX($this->_distance); $matrixXValue = $matrixObject->getX(); $this->assertTrue(is_object($matrixXValue)); $this->assertTrue(is_a($matrixXValue, 'Geodetic\\Distance')); $this->assertEquals(12345.0, $matrixXValue->getValue()); // Test fluid return object $this->assertTrue(is_object($fluidReturn)); // ... of the correct type $this->assertTrue(is_a($fluidReturn, 'Geodetic\\TranslationVectors')); }