@@ -12,7 +12,7 @@ Class {
1212{ #category : #accessing }
1313ToAnnulusSectorElement >> arcLength [
1414
15- ^ self outerRadius * self deltaAngleInRadians - (self radialGap * 2 )
15+ ^ self outerRadius * self deltaAngleRadians - (self radialGap * 2 )
1616]
1717
1818{ #category : #accessing }
@@ -80,7 +80,7 @@ ToAnnulusSectorElement >> chordLength [
8080
8181 | r |
8282 r := self outerRadius.
83- ^ 2 * r * (self deltaAngleInRadians / 2 ) sin - (self radialGap * 2 )
83+ ^ 2 * r * (self deltaAngleRadians / 2 ) sin - (self radialGap * 2 )
8484]
8585
8686{ #category : #initialization }
@@ -96,8 +96,9 @@ ToAnnulusSectorElement >> defaultLayout [
9696]
9797
9898{ #category : #accessing }
99- ToAnnulusSectorElement >> deltaAngleInRadians [
100- ^ (self endAngleInRadians - self startAngleInRadians) \\ (2 * Float pi)
99+ ToAnnulusSectorElement >> deltaAngleRadians [
100+
101+ ^ (self endAngleRadians - self startAngleRadians) \\ (2 * Float pi)
101102]
102103
103104{ #category : #accessing }
@@ -122,16 +123,21 @@ ToAnnulusSectorElement >> endAngle [
122123ToAnnulusSectorElement >> endAngle: anAngleInDegrees [
123124
124125 (self endAngle closeTo: anAngleInDegrees) ifTrue: [ ^ self ].
125- layout endAngle: anAngleInDegrees.
126- self requestLayout
126+ layout endAngle: anAngleInDegrees
127127]
128128
129129{ #category : #accessing }
130- ToAnnulusSectorElement >> endAngleInRadians [
130+ ToAnnulusSectorElement >> endAngleRadians [
131131
132132 ^ self endAngle degreesToRadians
133133]
134134
135+ { #category : #accessing }
136+ ToAnnulusSectorElement >> endAngleRadians: anAngleInRadians [
137+
138+ self endAngle: anAngleInRadians radiansToDegrees
139+ ]
140+
135141{ #category : #initialization }
136142ToAnnulusSectorElement >> initialize [
137143
@@ -143,15 +149,15 @@ ToAnnulusSectorElement >> initialize [
143149{ #category : #accessing }
144150ToAnnulusSectorElement >> innerArcLength [
145151
146- ^ (self innerRadius * self deltaAngleInRadians ) - (self radialGap * 2 )
152+ ^ (self innerRadius * self deltaAngleRadians ) - (self radialGap * 2 )
147153]
148154
149155{ #category : #accessing }
150156ToAnnulusSectorElement >> innerChordLength [
151157
152158 | r |
153159 r := self innerRadius.
154- ^ (2 * r * (self deltaAngleInRadians / 2 ) sin) - (self radialGap * 2 )
160+ ^ (2 * r * (self deltaAngleRadians / 2 ) sin) - (self radialGap * 2 )
155161]
156162
157163{ #category : #accessing }
@@ -167,8 +173,9 @@ ToAnnulusSectorElement >> innerRadius [
167173]
168174
169175{ #category : #accessing }
170- ToAnnulusSectorElement >> midAngleInRadians [
171- ^ self startAngleInRadians + (self deltaAngleInRadians / 2 )
176+ ToAnnulusSectorElement >> midAngleRadians [
177+
178+ ^ self startAngleRadians + (self deltaAngleRadians / 2 )
172179]
173180
174181{ #category : #initialization }
@@ -200,12 +207,6 @@ ToAnnulusSectorElement >> radialGap: aNumber [
200207
201208]
202209
203- { #category : #accessing }
204- ToAnnulusSectorElement >> startAngleInRadians [
205-
206- ^ self startAngle degreesToRadians
207- ]
208-
209210{ #category : #' t - annulus circular layout user' }
210211ToAnnulusSectorElement >> stateHolder [
211212
0 commit comments