Menu

#28 vector.rotate should work

feature request
closed-fixed
primitives (23)
5
2000-06-02
2000-05-29
Ruth Chabay
No

It would be helpful to be able to rotate a vector, just as one can rotate an arrow.

Discussion

  • David Scherer

    David Scherer - 2000-05-30

    Agreed, but this is a feature request ("It would be helpful")

     
  • David Scherer

    David Scherer - 2000-05-30
    • assigned_to: nobody --> dscherer
    • milestone: 101408 --> feature request
     
  • David Scherer

    David Scherer - 2000-06-02

    This has been implemented. For consistency with the other operations on vectors, it is a function rather than a method:

    v = rotate(v, angle=theta, axis=[0,0,1])

    The default axis is [0,0,1], for a rotation in the xy plane.

     
  • David Scherer

    David Scherer - 2000-06-02
    • status: open --> closed-fixed
     
MongoDB Logo MongoDB