survey#
Functions
Computes the 2-D position of all elements (no vertical bend) |
|
Computes the 3-D position of all elements |
- atgeometry(ring, refpts)#
- Computes the 2-D position of all elements (no vertical bend)posdata=atgeometry(ring,refpts)RING: AT structureREFPTS: observation points (array of indexes or logical mask)The allowed range is 1 to length(RING)+1Defaults to 1:length(RING)+1POSDATA:Structure array, same length as REFPTS, with 5 fields:x, y, angle, long, trans[posdata,radius]=atgeometry(ring,refpts)Outputs the machine radius at the beginning of the lattice.Note: this is different from the radius usually defined ascircumference/2/piposdata=atgeometry(…,’centered’)The offset is set so that the origin is at the centre of the ringposdata=atgeometry(ring,refpts,offset)Start at x=offset(1), y=offset(2). Ignored if ‘centered’ is set.A scalar offset value is equivalent to [0 OFFSET].posdata=atgeometry(…,’hangle’,h_angle)Set the initial trajectory angleSee also
atgeometry3()
- atgeometry3(ring, refpts)#
- Computes the 3-D position of all elementsposdata=atgeometry3(ring,refpts)RING: AT structureREFPTS: observation points (array of indexes or logical mask)The allowed range is 1 to length(RING)+1Defaults to 1:length(RING)+1POSDATA:Structure array, same length as REFPTS, with 3 fields:x, y, zposdata=atgeometry3(ring,refpts,offset)Start at x=offset(1), y=offset(2), z=offset(3)a scalar offset value is equivalent to [0 OFFSET 0]posdata=atgeometry3(…,’hangle’,h_angle)Set the initial horizontal trajectory angleposdata=atgeometry3(…,’vangle’,h_angle)Set the initial vertical trajectory angleSee also
atgeometry()