public static Vector3D TransPortVector(Vector3D realPoint) //單點做世界座標轉換 { Vector3D result = CalculateMethod.MatrixMulVector(realPoint, Tmatrix); Vector3D after = new Vector3D(); after.X = Rmatrix.M11 * result.X + Rmatrix.M12 * result.Y + Rmatrix.M13 * result.Z; after.Y = Rmatrix.M21 * result.X + Rmatrix.M22 * result.Y + Rmatrix.M23 * result.Z; after.Z = Rmatrix.M31 * result.X + Rmatrix.M32 * result.Y + Rmatrix.M33 * result.Z; return(after); }