Beispiel #1
0
        private static bool ExportDataPackedAsHV4(this BinaryWriter writer, string tagName, Vector3[] vectorArray)
        {
            WriteTag(writer, tagName);

            if (vectorArray == null)
            {
                writer.Write(0);
                return(true);
            }

            writer.Write(vectorArray.Length);
            foreach (var vectorVal in vectorArray)
            {
                var v      = vectorVal;
                var vector = VF_Packer.PackPosition(ref v);
                WriteHalfVector4(writer, ref vector);
            }

            return(true);
        }
Beispiel #2
0
 internal MyVertexFormatPositionH4(Vector3 position)
 {
     Position = VF_Packer.PackPosition(ref position);
 }
Beispiel #3
0
 public void SetVertexPosition(int vertexIndex, ref Vector3 newPosition)
 {
     m_vertices[vertexIndex].Position = VF_Packer.PackPosition(newPosition);
 }