Newer
Older
CGTrack / Assets / Oculus / SampleFramework / Core / Video / Scripts / VectorUtil.cs
@Pascal Syma Pascal Syma on 25 Jul 2021 507 bytes Initial Commit
/************************************************************************************

Copyright (c) Facebook Technologies, LLC and its affiliates. All rights reserved.  

************************************************************************************/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class VectorUtil {

    public static Vector4 ToVector(this Rect rect)
    {
        return new Vector4(rect.x, rect.y, rect.width, rect.height);
    }

}