Changeset 972 for trunk/src/mouse_motion.m
- Timestamp:
- Nov 15, 2016, 5:22:14 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_motion.m
r970 r972 224 224 sin_om=sin(pi*om/180); 225 225 pos=[xy(1,1) xy(1,2) 0]; 226 pos=cos_om*pos+sin_om*cross(OmAxis,pos)+(1-cos_om)*(OmAxis*pos')*OmAxis; 227 end 228 pos=pos+Field.ProjObjectCoord; 226 %pos=cos_om*pos+sin_om*cross(OmAxis,pos)+(1-cos_om)*(OmAxis*pos')*OmAxis; 227 coeff=OmAxis(3)*(1-cos_om); 228 norm_plane(1)=OmAxis(1)*coeff+OmAxis(2)*sin_om; 229 norm_plane(2)=OmAxis(2)*coeff-OmAxis(1)*sin_om; 230 norm_plane(3)=OmAxis(3)*coeff+cos_om; 231 %Z0=norm_plane*Field.ProjObjectCoord'/norm_plane(3); 232 pos(3)=-(norm_plane(1)*pos(1)-norm_plane(2)*pos(2))/norm_plane(3); 233 end 234 pos=pos+Field.ProjObjectCoord; 229 235 text_displ_3=[text_displ_3 'x,y,z=' num2str(pos,4)]; 230 236 end
Note: See TracChangeset
for help on using the changeset viewer.