ME3Explorer.UnrealHelper.UPropertyReader.PropToVector3 C# (CSharp) 메소드

PropToVector3() 공개 메소드

public PropToVector3 ( byte buff ) : System.Vector3
buff byte
리턴 System.Vector3
        public Vector3 PropToVector3(byte[] buff)
        {
            Vector3 v = new Vector3(0, 0, 0);
            if (buff == null || buff.Length < 12)
                return v;
            v.X = BitConverter.ToSingle(buff, buff.Length - 12);
            v.Y = BitConverter.ToSingle(buff, buff.Length - 8);
            v.Z = BitConverter.ToSingle(buff, buff.Length - 4);
            return v;
        }