Ignore:
Timestamp:
06/02/17 21:22:28 (7 years ago)
Author:
smasson
Message:

minor improvments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Utilities/linearequation.pro

    r371 r508  
    4646; 
    4747 
    48    if size(point1, /type) EQ 6 OR size(point1, /type) EQ 9 then begin 
    49       x1 = float(point1) 
    50       y1 = imaginary(point1) 
    51    ENDIF ELSE BEGIN 
     48  if size(point1, /type) EQ 6 OR size(point1, /type) EQ 9 then begin 
     49    x1 = real_part(point1) 
     50    y1 = imaginary(point1) 
     51  ENDIF ELSE BEGIN 
     52    if size(point1, /type) EQ 5 then begin 
     53      x1 = double(reform(point1[0, *])) 
     54      y1 = double(reform(point1[1, *])) 
     55    ENDIF ELSE BEGIN 
    5256      x1 = float(reform(point1[0, *])) 
    5357      y1 = float(reform(point1[1, *])) 
    54    ENDELSE 
    55  
    56    if size(point2, /type) EQ 6 OR size(point2, /type) EQ 9 then begin 
    57       x2 = float(point2) 
    58       y2 = imaginary(point2) 
    59    ENDIF ELSE BEGIN 
     58    ENDELSE 
     59  ENDELSE 
     60   
     61  if size(point2, /type) EQ 6 OR size(point2, /type) EQ 9 then begin 
     62    x2 = real_part(point2) 
     63    y2 = imaginary(point2) 
     64  ENDIF ELSE BEGIN 
     65    if size(point2, /type) EQ 5 then begin 
     66      x2 = double(reform(point2[0, *])) 
     67      y2 = double(reform(point2[1, *])) 
     68    ENDIF ELSE BEGIN 
    6069      x2 = float(reform(point2[0, *])) 
    6170      y2 = float(reform(point2[1, *])) 
    62    ENDELSE 
    63  
     71    ENDELSE 
     72  ENDELSE 
     73   
    6474   vertical = where(x1 EQ x2) 
    6575   novertical = where(x1 NE x2) 
Note: See TracChangeset for help on using the changeset viewer.