1 | <?php |
||
41 | class GeometryComponent extends ComponentAbstract implements GeometryInterface |
||
42 | { |
||
43 | |||
44 | /** |
||
45 | * Initialize Component |
||
46 | * |
||
47 | * {@inheritdoc} |
||
48 | * |
||
49 | * @return bool |
||
50 | */ |
||
51 | 40 | public function initializeComponent(): bool |
|
56 | |||
57 | /** |
||
58 | * Set geometry primitive |
||
59 | * |
||
60 | * One of box, circle, cone, cylinder, plane, ring, sphere, torus, torusKnot. |
||
61 | * |
||
62 | * @param string $primitive |
||
63 | * @throws InvalidComponentArgumentException |
||
64 | * @return void |
||
65 | */ |
||
66 | 38 | public function primitive(string $primitive) |
|
78 | |||
79 | /** |
||
80 | * translate |
||
81 | * |
||
82 | * {@inheritdoc} |
||
83 | * |
||
84 | * @param int|float $x |
||
85 | * @param int|float $y |
||
86 | * @param int|float $z |
||
87 | * @return void |
||
88 | */ |
||
89 | 7 | public function translate(float $x = 0, float $y = 0, float $z = 0) |
|
93 | |||
94 | /** |
||
95 | * Set Buffer |
||
96 | * |
||
97 | * {@inheritdoc} |
||
98 | * |
||
99 | * @param bool $buffer |
||
100 | * @return void |
||
101 | */ |
||
102 | 1 | public function buffer(bool $buffer = true) |
|
106 | |||
107 | /** |
||
108 | * skipCache |
||
109 | * |
||
110 | * {@inheritdoc} |
||
111 | * |
||
112 | * @param bool $skipCache |
||
113 | * @return void |
||
114 | */ |
||
115 | 1 | public function skipCache(bool $skipCache = false) |
|
119 | } |
||
120 |