コード例 #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);
        }
コード例 #2
0
 BounceClass(CoordStruct coords, double elasticity, double gravity,
             double maxVelocity, SingleVector3D velocity, double angularVelocity) : this()
 {
     this.Initialize(coords, elasticity, gravity, maxVelocity, velocity, angularVelocity);
 }
コード例 #3
0
ファイル: BasicStructures.cs プロジェクト: Xkein/PatcherYRpp
 public double DistanceFrom(SingleVector3D other)
 {
     return((other - this).Magnitude());
 }