public RectI(PointI pos, SizeI size) : this(ISMathPINVOKE.new_RectI__SWIG_3(PointI.getCPtr(pos), SizeI.getCPtr(size)), true)
 {
     if (ISMathPINVOKE.SWIGPendingException.Pending)
     {
         throw ISMathPINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public bool Contains(PointI p)
    {
        bool ret = IronSightEnginePINVOKE.RectI_Contains__SWIG_1(swigCPtr, PointI.getCPtr(p));

        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
    public RectI Offset(PointI offset)
    {
        RectI ret = new RectI(IronSightEnginePINVOKE.RectI_Offset__SWIG_1(swigCPtr, PointI.getCPtr(offset)), true);

        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Beispiel #4
0
    public virtual Vector3 ComputePixelDir(PointI pixelpos, Vector3 vdir)
    {
        global::System.IntPtr cPtr = IronSightEnginePINVOKE.ICamera_ComputePixelDir(swigCPtr, PointI.getCPtr(pixelpos), Vector3.getCPtr(vdir));
        Vector3 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector3(cPtr, false);

        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }