Changeset 1072 for trunk/src/mouse_up.m
- Timestamp:
- Jan 17, 2020, 8:13:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_up.m
r1071 r1072 95 95 else 96 96 switch ObjectData.Type 97 case {'line','plane _z'}97 case {'line','plane'} 98 98 if size(ObjectData.Coord,1)==1 % this is the mouse up for the first point, continue until next click 99 99 check_multiple=1; … … 106 106 check_multiple=1;% pass to next mous up if width of height=0 107 107 end 108 case 'plane' %case of 'plane', TODO: NOT ACTIVATED109 DX=(xy(1,1)-ObjectData.Coord(1,1));110 DY=(xy(1,2)-ObjectData.Coord(1,2));111 ObjectData.Phi=(angle(DX+i*DY))*180/pi;%rectangle width112 if isfield(ObjectData,'RangeX')113 XMax=sqrt(DX*DX+DY*DY);114 if XMax>max(ObjectData.RangeX)115 ObjectData.RangeX=[min(ObjectData.RangeX) XMax];116 end117 end108 % case 'plane' %case of 'plane', TODO: NOT ACTIVATED 109 % DX=(xy(1,1)-ObjectData.Coord(1,1)); 110 % DY=(xy(1,2)-ObjectData.Coord(1,2)); 111 % ObjectData.Phi=(angle(DX+i*DY))*180/pi;%rectangle width 112 % if isfield(ObjectData,'RangeX') 113 % XMax=sqrt(DX*DX+DY*DY); 114 % if XMax>max(ObjectData.RangeX) 115 % ObjectData.RangeX=[min(ObjectData.RangeX) XMax]; 116 % end 117 % end 118 118 otherwise 119 119 check_multiple=1;
Note: See TracChangeset
for help on using the changeset viewer.