MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Vector operations,


What about

{{1/2, 1/2}, {1, 0}, {0, 1}, {0, 0}} . {{Cos[\[Alpha]], Sin[\[Alpha]]},
{-Sin[\[Alpha]], Cos[\[Alpha]]}}

?

Ben

mickey schrieb:

> Hi,
>
> I have a list of vectors such as
>
> {{1/2, 1/2}, {1, 0}, {0, 1}, {0, 0}}
>
> I want to rotate them all by the same angle. Right now, what I do is
> multiply each by RotationMatrix2D[t] and iterate over the list. Is there
> a more efficient way to do this?
> 
> Thanks,
> -M


  • Prev by Date: showing variables in plots?
  • Next by Date: convergence checking
  • Previous by thread: Re: Vector operations,
  • Next by thread: Re: Vector operations,