1 | <?php |
||
26 | class RingMethods |
||
27 | { |
||
28 | /** |
||
29 | * Radius of the inner hole of the ring. |
||
30 | * |
||
31 | * @param array $dom_attributes |
||
32 | * @param double $radiusInner |
||
33 | * @return void |
||
34 | */ |
||
35 | 5 | public function radiusInner(array &$dom_attributes, float $radiusInner) |
|
39 | |||
40 | /** |
||
41 | * Radius of the outer edge of the ring. |
||
42 | * |
||
43 | * @param array $dom_attributes |
||
44 | * @param double $radiusOuter |
||
45 | * @return void |
||
46 | */ |
||
47 | 5 | public function radiusOuter(array &$dom_attributes, float $radiusOuter) |
|
51 | |||
52 | /** |
||
53 | * Central angle in degrees. |
||
54 | * |
||
55 | * @param array $dom_attributes |
||
56 | * @param double $thetaLength |
||
57 | * @return void |
||
58 | */ |
||
59 | 3 | public function thetaLength(array &$dom_attributes, float $thetaLength) |
|
63 | |||
64 | /** |
||
65 | * Starting angle in degrees. |
||
66 | * |
||
67 | * @param array $dom_attributes |
||
68 | * @param double $thetaStart |
||
69 | * @return void |
||
70 | */ |
||
71 | 3 | public function thetaStart(array &$dom_attributes, float $thetaStart) |
|
75 | |||
76 | /** |
||
77 | * Number of segments. |
||
78 | * A higher number means the ring will be more round. |
||
79 | * |
||
80 | * @param array $dom_attributes |
||
81 | * @param int $segmentsTheta |
||
82 | * @return void |
||
83 | */ |
||
84 | 5 | public function segmentsTheta(array &$dom_attributes, int $segmentsTheta) |
|
88 | |||
89 | /** |
||
90 | * Number of triangles within each face defined by segmentsTheta. |
||
91 | * |
||
92 | * @param array $dom_attributes |
||
93 | * @param int $segmentsPhi |
||
94 | * @return void |
||
95 | */ |
||
96 | 3 | public function segmentsPhi(array &$dom_attributes, int $segmentsPhi) |
|
100 | } |
||
101 |