1 | <?php |
||
26 | class TorusMethods |
||
27 | { |
||
28 | /** |
||
29 | * Radius of the outer edge of the torus. |
||
30 | * |
||
31 | * @param array $dom_attributes |
||
32 | * @param double $radius |
||
33 | * @return void |
||
34 | */ |
||
35 | 3 | public function radius(array &$dom_attributes, float $radius) |
|
39 | |||
40 | /** |
||
41 | * Radius of the tube. |
||
42 | * |
||
43 | * @param array $dom_attributes |
||
44 | * @param double $radiusTubular |
||
45 | * @return void |
||
46 | */ |
||
47 | 3 | public function radiusTubular(array &$dom_attributes, float $radiusTubular) |
|
51 | |||
52 | /** |
||
53 | * Number of segments along the circumference of the tube ends. |
||
54 | * A higher number means the tube will be more round. |
||
55 | * |
||
56 | * @param array $dom_attributes |
||
57 | * @param int $segmentsRadial |
||
58 | * @return void |
||
59 | */ |
||
60 | 3 | public function segmentsRadial(array &$dom_attributes, int $segmentsRadial) |
|
64 | |||
65 | /** |
||
66 | * Number of segments along the circumference of the tube face. |
||
67 | * A higher number means the tube will be more round. |
||
68 | * |
||
69 | * @param array $dom_attributes |
||
70 | * @param int $segmentsTubular |
||
71 | * @return void |
||
72 | */ |
||
73 | 3 | public function segmentsTubular(array &$dom_attributes, int $segmentsTubular) |
|
77 | |||
78 | /** |
||
79 | * Central angle. |
||
80 | * |
||
81 | * @param array $dom_attributes |
||
82 | * @param double $arc |
||
83 | * @return void |
||
84 | */ |
||
85 | 3 | public function arc(array &$dom_attributes, float $arc) |
|
89 | } |
||
90 |