1 | <?php |
||
30 | class Video extends Entity implements VideoPrimitiveIF |
||
31 | { |
||
32 | use MeshAttributes; |
||
33 | |||
34 | /** |
||
35 | * Init <a-sphere> |
||
36 | * |
||
37 | * The sphere primitive creates a spherical or polyhedron shapes. |
||
38 | * It wraps an entity that prescribes the geometry component with its geometric primitive set to sphere. |
||
39 | * |
||
40 | * {@inheritdoc} |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | 3 | public function init() |
|
49 | |||
50 | /** |
||
51 | * Set defaults |
||
52 | * |
||
53 | * {@inheritdoc} |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | 3 | public function defaults() |
|
69 | |||
70 | /** |
||
71 | * geometry.height |
||
72 | * |
||
73 | * {@inheritdoc} |
||
74 | * |
||
75 | * @param int|float $height |
||
|
|||
76 | * @return VideoPrimitiveIF |
||
77 | */ |
||
78 | 3 | public function height(float $height = 1.75): VideoPrimitiveIF |
|
83 | |||
84 | /** |
||
85 | * geometry.width |
||
86 | * |
||
87 | * {@inheritdoc} |
||
88 | * |
||
89 | * @param int|float $width |
||
90 | * @return VideoPrimitiveIF |
||
91 | */ |
||
92 | 3 | public function width(float $width = 3): VideoPrimitiveIF |
|
97 | } |