/** * Move point by sent value. * * @param int|float $x Move vector on OX axis. * @param int|float $y Move vector on OY axis. * @param int|float $z Move vector on OY axis. * @param int|float $t Move vector on OT axis. * @return Point4D Method returns current object instance. */ public function move($x = 0, $y = 0, $z = 0, $t = 0) { parent::move($x, $y, $z); $this->checkT($t); $this->t += $t; return $this; }
public function testPoint3DLowerDimension() { $point3D = new Point3D(-1, -2, -3); $this->assertInstanceOf(Point2D::class, $point3D->lowerDimension()); }