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); }
internal MyVertexFormatPositionH4(Vector3 position) { Position = VF_Packer.PackPosition(ref position); }
public void SetVertexPosition(int vertexIndex, ref Vector3 newPosition) { m_vertices[vertexIndex].Position = VF_Packer.PackPosition(newPosition); }