public override void Read(PkgBinaryReader reader) { UInt32 numData = ReadHeader(reader); for (int i = 0; i < numData; ++i) { Vector3 vec3 = new Vector3(); vec3.X = reader.ReadSingle(); vec3.Y = reader.ReadSingle(); vec3.Z = reader.ReadSingle(); reader.Seek(4, SeekOrigin.Current); values.Add(vec3); } }
public override void Read(PkgBinaryReader reader) { UInt32 numData = ReadHeader(reader); for (int i = 0; i < numData; ++i) { Quaternion vec3 = new Quaternion(); vec3.X = reader.ReadSingle(); vec3.Y = reader.ReadSingle(); vec3.Z = reader.ReadSingle(); vec3.W = reader.ReadSingle(); values.Add(vec3); } }
public override void Read(PkgBinaryReader reader) { var numData = ReadHeader(reader); for (var i = 0; i < numData; ++i) { var vec3 = new Quaternion { X = reader.ReadSingle(), Y = reader.ReadSingle(), Z = reader.ReadSingle(), W = reader.ReadSingle() }; values.Add(vec3); } }
public override void Read(PkgBinaryReader reader) { var numData = ReadHeader(reader); for (var i = 0; i < numData; ++i) { var vec3 = new Vector3 { X = reader.ReadSingle(), Y = reader.ReadSingle(), Z = reader.ReadSingle() }; reader.Seek(4, SeekOrigin.Current); values.Add(vec3); } }
public override void Read(PkgBinaryReader reader) { UInt32 numData = ReadHeader(reader); for (int i = 0; i < numData; ++i) { values.Add(reader.ReadSingle()); } }
public override void Read(PkgBinaryReader reader) { UInt32 numData = ReadHeader(reader); for (int i = 0; i < numData; ++i) { Matrix4x4 mat4 = new Matrix4x4(); mat4.M11 = reader.ReadSingle(); mat4.M12 = reader.ReadSingle(); mat4.M13 = reader.ReadSingle(); mat4.M14 = reader.ReadSingle(); mat4.M21 = reader.ReadSingle(); mat4.M22 = reader.ReadSingle(); mat4.M23 = reader.ReadSingle(); mat4.M24 = reader.ReadSingle(); mat4.M31 = reader.ReadSingle(); mat4.M32 = reader.ReadSingle(); mat4.M33 = reader.ReadSingle(); mat4.M34 = reader.ReadSingle(); mat4.M41 = reader.ReadSingle(); mat4.M42 = reader.ReadSingle(); mat4.M43 = reader.ReadSingle(); mat4.M44 = reader.ReadSingle(); values.Add(mat4); } }