Beispiel #1
0
        unsafe void Initialize(CoordStruct coords, double elasticity, double gravity,
                               double maxVelocity, SingleVector3D velocity, double angularVelocity)
        {
            var func = (delegate * unmanaged[Thiscall] < ref BounceClass, ref CoordStruct, double, double, double, ref SingleVector3D, double, void >) 0x4397E0;

            func(ref this, ref coords, elasticity, gravity, maxVelocity, ref velocity, angularVelocity);
        }
Beispiel #2
0
 BounceClass(CoordStruct coords, double elasticity, double gravity,
             double maxVelocity, SingleVector3D velocity, double angularVelocity) : this()
 {
     this.Initialize(coords, elasticity, gravity, maxVelocity, velocity, angularVelocity);
 }
Beispiel #3
0
 public double DistanceFrom(SingleVector3D other)
 {
     return((other - this).Magnitude());
 }