HOME GUIDE OPERATIONS DOCS ERRORS FORMATS INSTALL NEW TIPS WEB SITES WADSWORTH

VO - Vector Operation

(09/03/96)

PURPOSE

Performs vector operations on coordinates contained in a pair of registers (rotations,stretching,offsets).

USAGE

.OPERATION: VO X10,X11,X12,X13
[X10,X11 contain the input (x,y) coordinates; X12,X13 the coordinates after transformation.]

.X,Y OFFSET IN FIRST PICTURE: 9,9
[This offset is added to the input coordinates (OFF1).]

.X,Y ORIGIN OF FIRST PICTURE: 33,33
[Give the origin of the coordinate system you want to do your rotations in (subtracted from the input coordinates) (OO).]

.X,Y OFFSET IN SECOND PICTURE: 17,17
[Will be subtracted from the results after rotation and squeezing (OFF2) ]

.X,Y ORIGIN OF SECOND PICTURE: 65,65
[Will be added to the result (ON).]

.X,Y MULTIPLIER (SQUEEZE): 0.5,1
[Squeezes or stretches the vector in x and y direction independently (used in (SQE)).]

.ANGLE PHI OF SQUEEZE COORD.SYST: 10.4
[Give angle between the original coordinate syst. and the one in which the vector is to be squeezed (used in (D)).]

.BACK ROTATION (DEFAULT=PHI): 0
[Turns the vector back by the given angle (used in

(D(-1))).]

.RESULT VECTOR MULTIPLIER: 10.5
[The final vector is multiplied with this factor (STR).]

NOTES

  1. Formula used:
     
              ROUT=ON-OFF2+STR*(D(-1))*(SQE)*(D)*(RIN+OFF1-OO) 
                   .       .   .       .     .   ^   STEP1   ^ 
                   .       .   .       .     ^     STEP2     ^ 
                   .       .   .       ^        STEP3        ^ 
                   .       .   ^          STEP4              ^ 
                   .       ^          STEP5                  ^ 
                   <              STEP6                      > 
          	  VECTORS: 
    	      RIN    INPUT VECTOR (REGISTER 1 AND 2) 
    	      OFF1   OFFSET OF INPUT VECTOR 
    	      OO     ORIGIN OF INPUT COORDINATE SYSTEM 
    	      ON     ORIGIN OF OUTPUT COORDINATE SYSTEM 
    	      OFF2   OFFSET OF OUTPUT VECTOR 
    	  MATRICES: 
    	      (D)    FIRST ROTATION (BY PHI) 
    	      (D(-1))SECOND ROTATION (BY -PHI2) 
    	      (SQE)  MATRIX TO SQUEEZE (OR STRETCH) 
    	  SCALARS: 
    	      STR    STRETCH (OR SQUEEZE) -FACTOR 
              
     
              2. Not Distributed! 
    

SUBROUTINES

VECTOP

CALLER

DRIV1

© Copyright Notice /       Enquiries: spider@wadsworth.org

Back to SPIDER Back to Wadsworth