Skip to content

Commit

Permalink
Fixed an error in the documentation of rotatevector(). Thanks @michel
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldOfView committed Apr 9, 2011
1 parent df0fbbb commit da5c7ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vectormath/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ A krpano plugin that provides a number of vector math methods:
Sets destVar to the angle between the two vectors defined by ('ath1', 'atv1') and ('ath2', 'atv2')
* `normal(destVarH, destVarV, ath1, atv1, ath2, atv2)`
Sets destVarH and destVarV to align with the normal of the two vectors defined by ('ath1', 'atv1') and ('ath2', 'atv2')
* `rotatevector(destVarH, destVarV, ath1, atv1, ath2, atv2)`
Sets destVarH and destVarV to align with the vector ('ath1', 'atv1') after it has been rotated by ('ath2', 'atv2')
* `rotatevector(destVarH, destVarV, destVarRotate, ath1, atv1, rotate1, ath2, atv2, rotate2)`
Sets destVarH, destVarV and destVarRotate to align with the vector ('ath1', 'atv1', 'rotate1') after it has been rotated by ('ath2', 'atv2', 'rotate2')

All angles are specified and returned in degrees, and axis rotations are done in the same order as krpano does them.

Expand Down
4 changes: 2 additions & 2 deletions vectormath/plugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ <h2><a name="attributes" href="#attributes" class="selflink">Plugin Methods</a><
<dd>Sets destVar to the angle between the two vectors defined by ('ath1', 'atv1') and ('ath2', 'atv2').</dd>
<dt><a name="normal" href="#normal" class="selflink">normal</a>(destVarH, destVarV, ath1, atv1, ath2, atv2)</dt>
<dd>Sets destVarH and destVarV to align with the normal of the two vectors defined by ('ath1', 'atv1') and ('ath2', 'atv2').</dd>
<dt><a name="rotatevector" href="#rotatevector" class="selflink">rotatevector</a>(destVarH, destVarV, ath1, atv1, ath2, atv2)</dt>
<dd>Sets destVarH and destVarV to align with the vector ('ath1', 'atv1') after it has been rotated by ('ath2', 'atv2').</dd>
<dt><a name="rotatevector" href="#rotatevector" class="selflink">rotatevector</a>(destVarH, destVarV, destVarRotate, ath1, atv1, rotate1, ath2, atv2, rotate2)</dt>
<dd>Sets destVarH, destVarV and destVarRotate to align with the vector ('ath1', 'atv1', 'rotate1') after it has been rotated by ('ath2', 'atv2', 'rotate2').</dd>
</dl>
<p>Note that all parameters except destVar are taken as literals. If you want to pass the value of a variable or property, you have to use the get() function.</p>
<p>All angles are specified and returned in degrees, and axis rotations are done in the same order as in krpano. </p>
Expand Down

0 comments on commit da5c7ff

Please sign in to comment.