/** * 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 testSetYValue() { $matrixObject = new RotationMatrix($this->_xyz); $fluidReturn = $matrixObject->setY($this->_angle); $matrixYValue = $matrixObject->getY(); $this->assertTrue(is_object($matrixYValue)); $this->assertTrue(is_a($matrixYValue, 'Geodetic\\Angle')); $this->assertEquals(12345.0, $matrixYValue->getValue()); // Test fluid return object $this->assertTrue(is_object($fluidReturn)); // ... of the correct type $this->assertTrue(is_a($fluidReturn, 'Geodetic\\RotationMatrix')); }