コード例 #1
0
ファイル: b2Transform.cs プロジェクト: vanoseva/Box2DCS
 public b2Transform(b2Vec2 position, b2Rot rotation)
     : this(Box2DPINVOKE.new_b2Transform__SWIG_1(b2Vec2.getCPtr(position), b2Rot.getCPtr(rotation)), true)
 {
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #2
0
ファイル: Box2D.cs プロジェクト: vanoseva/Box2DCS
 public static b2Vec2 b2MulT(b2Rot q, b2Vec2 v)
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2MulT__SWIG_3(b2Rot.getCPtr(q), b2Vec2.getCPtr(v)), true);
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #3
0
ファイル: b2Rot.cs プロジェクト: vanoseva/Box2DCS
 internal static HandleRef getCPtr(b2Rot obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #4
0
ファイル: Box2D.cs プロジェクト: vanoseva/Box2DCS
 public static b2Rot b2MulT(b2Rot q, b2Rot r)
 {
     b2Rot ret = new b2Rot(Box2DPINVOKE.b2MulT__SWIG_2(b2Rot.getCPtr(q), b2Rot.getCPtr(r)), true);
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }