22 lines
537 B
C#
22 lines
537 B
C#
|
using Microsoft.Xna.Framework;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.IO;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace ModdedUtilitiesNetworking.Framework.Extentions
|
|||
|
{
|
|||
|
public static class XNAExtentions
|
|||
|
{
|
|||
|
public static Vector3 ReadVector3(this BinaryReader reader)
|
|||
|
{
|
|||
|
float x = reader.ReadSingle();
|
|||
|
float y = reader.ReadSingle();
|
|||
|
float z = reader.ReadSingle();
|
|||
|
return new Vector3(x, y, z);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|