Exemple #1
0
        public static int b2ClipSegmentToLine(b2ClipVertex vOut, b2ClipVertex vIn, b2Vec2 normal, float offset, int vertexIndexA)
        {
            int ret = Box2DPINVOKE.b2ClipSegmentToLine(b2ClipVertex.getCPtr(vOut), b2ClipVertex.getCPtr(vIn), b2Vec2.getCPtr(normal), offset, vertexIndexA);

            if (Box2DPINVOKE.SWIGPendingException.Pending)
            {
                throw Box2DPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(b2ClipVertex obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }