Exemple #1
0
 public static Rect ReadRect(ref UdpBitStream stream)
 {
     return(new Rect(
                stream.ReadFloat(),
                stream.ReadFloat(),
                stream.ReadFloat(),
                stream.ReadFloat()
                ));
 }
Exemple #2
0
 public static Plane ReadPlane(ref UdpBitStream stream)
 {
     return(new Plane(
                UdpBitStreamExt.ReadVector3(ref stream),
                stream.ReadFloat()
                ));
 }
 public static Matrix4x4 ReadMatrix4x4(ref UdpBitStream stream)
 {
     Matrix4x4 m = default(Matrix4x4);
     m.m00 = stream.ReadFloat();
     m.m01 = stream.ReadFloat();
     m.m02 = stream.ReadFloat();
     m.m03 = stream.ReadFloat();
     m.m10 = stream.ReadFloat();
     m.m11 = stream.ReadFloat();
     m.m12 = stream.ReadFloat();
     m.m13 = stream.ReadFloat();
     m.m20 = stream.ReadFloat();
     m.m21 = stream.ReadFloat();
     m.m22 = stream.ReadFloat();
     m.m23 = stream.ReadFloat();
     m.m30 = stream.ReadFloat();
     m.m31 = stream.ReadFloat();
     m.m32 = stream.ReadFloat();
     m.m33 = stream.ReadFloat();
     return m;
 }
Exemple #4
0
 public static Vector3 ReadVector3(ref UdpBitStream stream)
 {
     return(new Vector3(stream.ReadFloat(), stream.ReadFloat(), stream.ReadFloat()));
 }
Exemple #5
0
        public static Matrix4x4 ReadMatrix4x4(ref UdpBitStream stream)
        {
            Matrix4x4 m = default(Matrix4x4);

            m.m00 = stream.ReadFloat();
            m.m01 = stream.ReadFloat();
            m.m02 = stream.ReadFloat();
            m.m03 = stream.ReadFloat();
            m.m10 = stream.ReadFloat();
            m.m11 = stream.ReadFloat();
            m.m12 = stream.ReadFloat();
            m.m13 = stream.ReadFloat();
            m.m20 = stream.ReadFloat();
            m.m21 = stream.ReadFloat();
            m.m22 = stream.ReadFloat();
            m.m23 = stream.ReadFloat();
            m.m30 = stream.ReadFloat();
            m.m31 = stream.ReadFloat();
            m.m32 = stream.ReadFloat();
            m.m33 = stream.ReadFloat();
            return(m);
        }
Exemple #6
0
 public static Quaternion ReadQuaternion(ref UdpBitStream stream)
 {
     return(new Quaternion(stream.ReadFloat(), stream.ReadFloat(), stream.ReadFloat(), stream.ReadFloat()));
 }
Exemple #7
0
 public static Color ReadColorRGBA(ref UdpBitStream stream)
 {
     return(new Color(stream.ReadFloat(), stream.ReadFloat(), stream.ReadFloat(), stream.ReadFloat()));
 }
 public static Color ReadColorRGBA(ref UdpBitStream stream)
 {
     return new Color(stream.ReadFloat(), stream.ReadFloat(), stream.ReadFloat(), stream.ReadFloat());
 }
 public static Vector4 ReadVector4(ref UdpBitStream stream)
 {
     return new Vector4(stream.ReadFloat(), stream.ReadFloat(), stream.ReadFloat(), stream.ReadFloat());
 }
 public static Rect ReadRect(ref UdpBitStream stream)
 {
     return new Rect(
         stream.ReadFloat(),
         stream.ReadFloat(),
         stream.ReadFloat(),
         stream.ReadFloat()
     );
 }
 public static Quaternion ReadQuaternion(ref UdpBitStream stream)
 {
     return new Quaternion(stream.ReadFloat(), stream.ReadFloat(), stream.ReadFloat(), stream.ReadFloat());
 }
 public static Plane ReadPlane(ref UdpBitStream stream)
 {
     return new Plane(
         UdpBitStreamExt.ReadVector3(ref stream),
         stream.ReadFloat()
     );
 }