예제 #1
0
 public function copy()
 {
     $copy = new Points($this->start->copy(), $this->ignoreFirst);
     foreach ($this->points as $point) {
         $copy->addPoint($point->copy());
     }
     return $copy;
 }
예제 #2
0
 public function scaleXProvider()
 {
     return array(array([[-10, 20], [-10, 100], [-110, 100], [-110, 20]], Points::rectangle(Point::create(10, 20), 100, 80)->scaleX(Point::create(0, 0), -1)), array([[10, 20], [10, 100], [60, 100], [60, 20]], Points::rectangle(Point::create(10, 20), 100, 80, true)->scaleX(Point::create(10, 20), 0.5)));
 }