Glare.Box4i.NearestPointTo C# (CSharp) Method

NearestPointTo() public method

Get the nearest point between this Box4i and a Vector4i. If the Vector4i is inside this Box4i, it is returned untouched.
public NearestPointTo ( Vector4i &point, Vector4i &result ) : void
point Vector4i
result Vector4i
return void
        public void NearestPointTo( ref  Vector4i point , out Vector4i result)
        {
            Containment containment = Intersect(ref point);
                if(containment != Containment.Disjoint)
                    result = point;
                else
                    point.Clamp(ref Min, ref Max, out result);
                return;
        }

Same methods

Box4i::NearestPointTo ( Vector4i point ) : Vector4i