public void TransformNormalize(Matrix3 m) { float[] result = m.VectorMultiply (new float[] { X, Y, Z, W }); X = result [0] / result [3]; Y = result [1] / result [3]; Z = result [2]; W = 1; }