UnityEditor.ReflectionProbeEditor.ValidateAABB C# (CSharp) Méthode

ValidateAABB() private méthode

private ValidateAABB ( Vector3 &center, Vector3 &size ) : bool
center Vector3
size Vector3
Résultat bool
        private bool ValidateAABB(ref Vector3 center, ref Vector3 size)
        {
            ReflectionProbe target = (ReflectionProbe) base.target;
            Vector3 position = target.transform.position;
            Bounds bounds = new Bounds(center + position, size);
            if (bounds.Contains(position))
            {
                return false;
            }
            bounds.Encapsulate(position);
            center = bounds.center - position;
            size = bounds.size;
            return true;
        }