Using the formulae


which I found on Wikipedia, I have written this:
rotdist2 = new Vector4(
rotdist.X * (float)Math.Cos(radian) - rotdist.Y * (float)Math.Sin(radian)
, rotdist.Y * (float)Math.Cos(radian) + rotdist.X * (float)Math.Sin(radian)
, rotdist.Z * (float)Math.Cos(radian) - rotdist.W * (float)Math.Sin(radian)
, rotdist.Z * (float)Math.Cos(radian) + rotdist.W * (float)Math.Sin(radian)
);
However, when I try to rotate my points (X,Y) and (Z,W) (and the subsequent lines I'm drawing between them) it all goes crazy.
Did I do the formula correct? I can't see how I didn't.