Unit Vectors
Unit vector is a vector of magnitude 1
If we start with our basic vector
TO VECTORA :X :Y :Z PU EAST :X UP :Y SOUTH :Z MAKE "A POS EAST -:X UP -:Y SOUTH -:Z PD SETPOS :A LABEL POS PU END
|
to assist with visualisation, the procedure axis can be defined to provide X, Y, Z reference
TO AXIS HOME PD EAST 10 LABEL "X_positive WEST 20 LABEL "X_negative EAST 10 UP 10 LABEL "Y_positive DOWN 20 LABEL "Y_negative UP 10 SOUTH 10 LABEL "Z_positive NORTH 20 LABEL "Z_negative SOUTH 10 PU END
File: UNIT_VECTOR.logo
- Knoblauch's blog
- Login or register to post comments
- 3559 reads