Esempio n. 1
0
		public extern static void dQFromAxisAndAngle( out dQuaternion q, dReal ax, dReal ay, dReal az, dReal angle );
Esempio n. 2
0
			/// <summary>
			///
			/// </summary>
			/// <param name="x"></param>
			/// <param name="y"></param>
			/// <param name="z"></param>
			/// <param name="w"></param>
			public dVector4( dReal x, dReal y, dReal z, dReal w )
			{
				X = x;
				Y = y;
				Z = z;
				W = w;
			}
Esempio n. 3
0
		public extern static void dRFromEulerAngles( out dMatrix3 R, dReal phi, dReal theta, dReal psi );
Esempio n. 4
0
		public extern static void dRFromZAxis( dReal[] R, dReal ax, dReal ay, dReal az );
Esempio n. 5
0
			/// <summary>
			///
			/// </summary>
			/// <param name="_mass"></param>
			/// <param name="_c"></param>
			/// <param name="_I"></param>
			public dMass( dReal _mass, dVector3 _c, dMatrix3 _I )
			{
				mass = _mass;
				c = _c;
				I = _I;
			}
Esempio n. 6
0
		public extern static void dGeomTriMeshGetPoint( dGeomID g, int Index, dReal u, dReal v, ref dVector3 Out );
Esempio n. 7
0
		public extern static dReal dGeomBoxPointDepth( dGeomID box, dReal x, dReal y, dReal z );
Esempio n. 8
0
		public extern static void dGeomRaySetLength( dGeomID ray, dReal length );
Esempio n. 9
0
		public extern static dGeomID dCreateBox( dSpaceID space, dReal lx, dReal ly, dReal lz );
Esempio n. 10
0
		public extern static void dGeomBoxSetLengths( dGeomID box, dReal lx, dReal ly, dReal lz );
Esempio n. 11
0
		public extern static dReal dGeomSpherePointDepth( dGeomID sphere, dReal x, dReal y, dReal z );
Esempio n. 12
0
		public extern static void dGeomSphereSetRadius( dGeomID sphere, dReal radius );
Esempio n. 13
0
		public extern static dGeomID dCreateSphere( dSpaceID space, dReal radius );
Esempio n. 14
0
		public extern static void dGeomSetOffsetWorldPosition( dGeomID geom, dReal x, dReal y, dReal z );
Esempio n. 15
0
		public extern static dGeomID dCreatePlane( dSpaceID space, dReal a, dReal b, dReal c, dReal d );
Esempio n. 16
0
		public extern static dGeomID dCreateRay( dSpaceID space, dReal length );
Esempio n. 17
0
		public extern static void dGeomPlaneSetParams( dGeomID plane, dReal a, dReal b, dReal c, dReal d );
Esempio n. 18
0
		public extern static void dGeomRaySet( dGeomID ray, dReal px, dReal py, dReal pz,
			dReal dx, dReal dy, dReal dz );
Esempio n. 19
0
		public extern static dReal dGeomPlanePointDepth( dGeomID plane, dReal x, dReal y, dReal z );
Esempio n. 20
0
		public static extern int dBoxBox( dVector3 p1, dMatrix3 R1,
		 dVector3 side1, dVector3 p2,
		 dMatrix3 R2, dVector3 side2,
		 ref dVector3 normal, ref dReal depth, ref int return_code,
		 int maxc, ref dContactGeom[] contact, int skip );
Esempio n. 21
0
		public extern static dGeomID dCreateCapsule( dSpaceID space, dReal radius, dReal length );
Esempio n. 22
0
		public extern static void dRFromAxisAndAngle( out dMatrix3 R, dReal ax, dReal ay, dReal az, dReal angle );
Esempio n. 23
0
		public extern static void dGeomCapsuleGetParams( dGeomID capsule, ref dReal radius, ref dReal length );
Esempio n. 24
0
		public extern static void dRFrom2Axes( out dMatrix3 R, dReal ax, dReal ay, dReal az, dReal bx, dReal by, dReal bz );
Esempio n. 25
0
		public extern static dReal dGeomCapsulePointDepth( dGeomID capsule, dReal x, dReal y, dReal z );
Esempio n. 26
0
		/// <summary>
		/// ODE API compatability function due to dMatrix3 marshalling errors
		/// </summary>
		/// <param name="R"></param>
		/// <param name="ax"></param>
		/// <param name="ay"></param>
		/// <param name="az"></param>
		public static void dRFromZAxis( dMatrix3 R, dReal ax, dReal ay, dReal az )
		{
			dRFromZAxis( R.ToArray(), ax, ay, az );
		}
Esempio n. 27
0
		public extern static dGeomID dCreateCylinder( dSpaceID space, dReal radius, dReal length );
Esempio n. 28
0
			/// <summary>
			///
			/// </summary>
			/// <param name="x"></param>
			/// <param name="y"></param>
			/// <param name="z"></param>
			public dVector3( dReal x, dReal y, dReal z )
			{
				X = x;
				Y = y;
				Z = z;
				SIMD_PADDING = (dReal)0;
			}
Esempio n. 29
0
		public extern static void dGeomCylinderGetParams( dGeomID cylinder, ref dReal radius, ref dReal length );
Esempio n. 30
0
			/// <summary>
			/// Indexer to support use of array syntax as found in ODE examples
			/// X = 0, Y = 1, Z = 2, W = 3
			/// </summary>
			public dReal this[ int index ]
			{
				get
				{
					if( index < 0 || index > 3 )
					{
						throw new ArgumentOutOfRangeException( "Index out of range" );
					}
					dReal retVal = 0;
					switch( index )
					{
					case 0:
						retVal = X;
						break;
					case 1:
						retVal = Y;
						break;
					case 2:
						retVal = Z;
						break;
					case 3:
						retVal = W;
						break;
					}
					return retVal;
				}
				set
				{
					if( index < 0 || index > 3 )
					{
						throw new ArgumentOutOfRangeException( "Index out of range" );
					}
					switch( index )
					{
					case 0:
						X = value;
						break;
					case 1:
						Y = value;
						break;
					case 2:
						Z = value;
						break;
					case 3:
						W = value;
						break;
					}

				}
			}
Esempio n. 31
0
 public static extern void DrawCapsule(ref d.Vector3 pos, ref d.Matrix3 R, dReal length, dReal radius);