math:vector-rotate

(math:vector-rotate v int)


Description:

Rotate vector by int.  where int can be positive or negative for a forwards or backwards rotation.  the rotate affects v directly.  Any vectors must contain real numbers only


Arguments:

              v -- vector

            int -- amount of rotation


Returns: boolean


Examples:

(define v1 (vector 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0))

(math:vector-rotate v1 -2)

(print v1)



Back to index