コード例 #1
0
    public static Vector4 Deserialize(this SVector4 _Vector4)
    {
        Vector4 returnVal = new Vector4
        {
            x = _Vector4.x,
            y = _Vector4.y,
            z = _Vector4.z,
            w = _Vector4.w
        };

        return(returnVal);
    }
コード例 #2
0
    public static SVector4 Serialize(this Vector4 _Vector4)
    {
        if (_Vector4 == null)
        {
            return(null);
        }

        SVector4 returnVal = new SVector4
        {
            x = _Vector4.x,
            y = _Vector4.y,
            z = _Vector4.z,
            w = _Vector4.w
        };

        return(returnVal);
    }