2
#name : #DrGLocusHomothetyItem,
3
#superclass : #DrGLocusTranslationItem,
4
#category : #'DrGeoII-Core-Item'
7
{ #category : #'xml writing' }
8
DrGLocusHomothetyItem >> nodeType [
12
{ #category : #updating }
13
DrGLocusHomothetyItem >> update [
14
self doParentsExist ifTrue: [| locusPoints center factor|
15
center := parents second point.
16
factor := parents third valueItem.
17
locusPoints := parents first points.
18
sampleNumber := parents first samples.
19
p := Array new: sampleNumber.
20
1 to: sampleNumber do: [:i |
21
p at: i put: center + (factor * ((locusPoints at: i) - center))]]