~hilaire-fernandes/drgeo/trunk

« back to all changes in this revision

Viewing changes to src/DrGeoII-Core/DrGValueArclengthItem.class.st

  • Committer: Hilaire Fernandes
  • Date: 2017-11-15 13:17:03 UTC
  • Revision ID: hilaire.fernandes@gmail.com-20171115131703-pz09obavthi53ebt
DrGeo code under Tonel file format

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Class {
 
2
        #name : #DrGValueArclengthItem,
 
3
        #superclass : #DrGComputedValueItem,
 
4
        #category : #'DrGeoII-Core-Item'
 
5
}
 
6
 
 
7
{ #category : #private }
 
8
DrGValueArclengthItem >> adaptiveDescriptiveName [
 
9
        ^ 'This arc length %1' translated
 
10
]
 
11
 
 
12
{ #category : #'xml writing' }
 
13
DrGValueArclengthItem >> nodeType [
 
14
        ^#'arc_length'
 
15
]
 
16
 
 
17
{ #category : #updating }
 
18
DrGValueArclengthItem >> update [
 
19
        self doParentsExist ifTrue: 
 
20
                [value := parents first length abs * parents first radius].
 
21
 
 
22
]