This plugin provides a number of tigonometry and vector math methods.
The vectormath sources and examples are available as part of the fovplugins package
<plugin name="vectormath" url="vectormath.swf" keep="true" preload="true" />
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.
All angles are specified and returned in degrees, and axis rotations are done in the same order as in krpano.
The plugin can be used free of charge, in commercial or non-commercial applications. The source code is available under a Creative Commons Attribution license.
In a nutshell, this means you are free to use the software and its source code in your projects. If you use the source code in another software project, you are required to add attribution to the author(s). You are encouraged to share the your source code under a similar fashion, but it is not a requirement.
If you use the plugins regularly, you may consider making a donation so I can afford to continue making these plugins and making them available.