本文整理汇总了PHP中Point::drawAndMovePoint方法的典型用法代码示例。如果您正苦于以下问题:PHP Point::drawAndMovePoint方法的具体用法?PHP Point::drawAndMovePoint怎么用?PHP Point::drawAndMovePoint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Point
的用法示例。
在下文中一共展示了Point::drawAndMovePoint方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: drawAndMoveLine
public function drawAndMoveLine($move = 0)
{
parent::drawAndMovePoint($this->x1, $this->y1, $move);
parent::drawAndMovePoint($this->x2, $this->y2, $move);
}
示例2: Point
<?php
require 'point.php';
$point = new Point();
$point->drawAndMovePoint(10, 15);
$point->displayImage();
示例3: drawAndMoveTriangle
public function drawAndMoveTriangle($move = 0)
{
parent::drawAndMovePoint($this->x1, $this->y1, $move);
parent::drawAndMovePoint($this->x2, $this->y2, $move);
parent::drawAndMovePoint($this->x3, $this->y3, $move);
}
示例4: drawAndMoveShape
public function drawAndMoveShape($move = 0)
{
for ($i = 0; $i < count($this->points); $i++) {
parent::drawAndMovePoint($this->points[$i][0], $this->points[$i][1], $move);
}
}