public static Vector3 FromRealToProjective(this Vector3 vector, OpenNILib.DepthGenerator depthGenerator) { var projectiveVector = depthGenerator.ConvertRealWorldToProjective(new OpenNILib.Point3D(vector.X, vector.Y, vector.Z)); return projectiveVector.ToVector3(); }