Example #1
0
        public static int[] AsInt32(this Vector4 v)
        {
            BitConverter bit = default(BitConverter);

            return(new[] {
                bit.AsInt32(v.X), bit.AsInt32(v.Y), bit.AsInt32(v.Z), bit.AsInt32(v.W)
            });
        }
Example #2
0
        public static int[] AsInt32(this Matrix4 v)
        {
            BitConverter bit = default(BitConverter);

            return(new int[] {
                bit.AsInt32(v.M11), bit.AsInt32(v.M12), bit.AsInt32(v.M13), bit.AsInt32(v.M14),
                bit.AsInt32(v.M21), bit.AsInt32(v.M22), bit.AsInt32(v.M23), bit.AsInt32(v.M24),
                bit.AsInt32(v.M31), bit.AsInt32(v.M32), bit.AsInt32(v.M33), bit.AsInt32(v.M34),
                bit.AsInt32(v.M41), bit.AsInt32(v.M42), bit.AsInt32(v.M43), bit.AsInt32(v.M44),
            });
        }