//////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2007-2020 , Inc. All Rights Reserved. // //////////////////////////////////////////////////////////////////////////////// using UnityEngine; using GCSeries.Core.Interop; namespace GCSeries.Core.Extensions { public static class FrustumPlanesExtensions { //////////////////////////////////////////////////////////////////////// // Public Extension Methods //////////////////////////////////////////////////////////////////////// /// /// Converts Unity's FrustumPlanes data structure to the /// SDK's ZFrustumBounds data structure. /// /// /// /// ZFrustumBounds initialized based on the current state of /// the FrustumPlanes. /// public static ZFrustumBounds ToZFrustumBounds(this FrustumPlanes f) { return new ZFrustumBounds( f.left, f.right, f.bottom, f.top, f.zNear, f.zFar); } } }