1 | <?php |
||
29 | class Cylinder extends Entity implements EntityInterface |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * <a-cylinder> |
||
34 | * |
||
35 | * The cylinder primitive is an entity that prescribes the geometry with its geometric primitive set to cylinder. |
||
36 | * It can be used to create tubes and curved surfaces. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | 1 | public function reset() |
|
46 | |||
47 | /** |
||
48 | * Set defaults |
||
49 | * |
||
50 | * {@inheritdoc} |
||
51 | * |
||
52 | * @return void |
||
53 | */ |
||
54 | public function defaults() |
||
64 | |||
65 | /** |
||
66 | * geometry.height |
||
67 | * |
||
68 | * @param int|float $height |
||
|
|||
69 | * @return self |
||
70 | */ |
||
71 | public function height(float $height): self |
||
76 | |||
77 | /** |
||
78 | * geometry.openEnded |
||
79 | * |
||
80 | * @param bool $openEnded |
||
81 | * @return self |
||
82 | */ |
||
83 | public function openEnded(bool $openEnded = false): self |
||
88 | |||
89 | /** |
||
90 | * geometry.radius |
||
91 | * |
||
92 | * @param float $radius |
||
93 | * @return self |
||
94 | */ |
||
95 | public function radius(float $radius = 0.75): self |
||
100 | |||
101 | /** |
||
102 | * geometry.segmentsHeight |
||
103 | * |
||
104 | * @param int $segmentsHeight |
||
105 | * @return self |
||
106 | */ |
||
107 | public function segmentsHeight(int $segmentsHeight = 1): self |
||
112 | |||
113 | /** |
||
114 | * geometry.segmentsRadial |
||
115 | * |
||
116 | * @param int $segmentsRadial |
||
117 | * @return self |
||
118 | */ |
||
119 | public function segmentsRadial(int $segmentsRadial = 36): self |
||
124 | |||
125 | /** |
||
126 | * geometry.thetaLength |
||
127 | * |
||
128 | * @param int $thetaLength |
||
129 | * @return self |
||
130 | */ |
||
131 | public function thetaLength(int $thetaLength = 360): self |
||
136 | |||
137 | /** |
||
138 | * geometry.thetaStart |
||
139 | * |
||
140 | * @param int $thetaStart |
||
141 | * @return self |
||
142 | */ |
||
143 | public function thetaStart(int $thetaStart = 0): self |
||
148 | } |
||
149 |