| 1 | <?php |
||
| 29 | class Plane extends Entity implements EntityInterface |
||
| 30 | { |
||
| 31 | /** |
||
| 32 | * Init <a-plane> |
||
| 33 | * |
||
| 34 | * The plane primitive creates flat surfaces. |
||
| 35 | * It is an entity that prescribes the geometry |
||
| 36 | * with its geometric primitive set to plane. |
||
| 37 | * |
||
| 38 | * @return void |
||
| 39 | */ |
||
| 40 | 3 | public function reset() |
|
| 41 | { |
||
| 42 | 3 | parent::reset(); |
|
| 43 | 3 | $this->attr('Material'); |
|
| 44 | 3 | $this->attr('Geometry')->primitive('plane'); |
|
| 45 | 3 | } |
|
| 46 | |||
| 47 | /** |
||
| 48 | * geometry.height |
||
| 49 | * |
||
| 50 | * @param float $height |
||
| 51 | * @return Plane |
||
| 52 | */ |
||
| 53 | 2 | public function height(float $height) |
|
| 58 | |||
| 59 | /** |
||
| 60 | * geometry.width |
||
| 61 | * |
||
| 62 | * @param float $width |
||
| 63 | * @return Plane |
||
| 64 | */ |
||
| 65 | 2 | public function width(float $width) |
|
| 70 | } |
||
| 71 |