/dports/games/dhewm3/dhewm3-1.5.1/neo/d3xp/physics/ |
H A D | Push.cpp | 320 float totalMass; in ClipTranslationalPush() local 324 totalMass = 0.0f; in ClipTranslationalPush() 332 return totalMass; in ClipTranslationalPush() 447 return totalMass; in ClipTranslationalPush() 516 float totalMass; in ClipRotationalPush() local 521 totalMass = 0.0f; in ClipRotationalPush() 529 return totalMass; in ClipRotationalPush() 655 return totalMass; in ClipRotationalPush() 1050 float totalMass; in ClipTranslationalPush() local 1055 totalMass = 0.0f; in ClipTranslationalPush() [all …]
|
/dports/games/dhewm3/dhewm3-1.5.1/neo/game/physics/ |
H A D | Push.cpp | 320 float totalMass; in ClipTranslationalPush() local 324 totalMass = 0.0f; in ClipTranslationalPush() 332 return totalMass; in ClipTranslationalPush() 447 return totalMass; in ClipTranslationalPush() 516 float totalMass; in ClipRotationalPush() local 521 totalMass = 0.0f; in ClipRotationalPush() 529 return totalMass; in ClipRotationalPush() 655 return totalMass; in ClipRotationalPush() 1050 float totalMass; in ClipTranslationalPush() local 1055 totalMass = 0.0f; in ClipTranslationalPush() [all …]
|
/dports/astro/kstars/kstars-3.5.6/kstars/fitsviewer/ |
H A D | fitsthresholddetector.cpp | 68 float massX = 0, massY = 0, totalMass = 0; in findOneStar() local 83 totalMass += pixel; in findOneStar() 90 …KSTARS_FITS) << "FITS: Weighted Center is X: " << massX / totalMass << " Y: " << massY / totalMass; in findOneStar() 94 center->x = massX / totalMass + 0.5; in findOneStar() 95 center->y = massY / totalMass + 0.5; in findOneStar()
|
H A D | fitsgradientdetector.cpp | 129 float totalMass = 0; in findSources() member 146 masses[regionID].totalMass += pixel; in findSources() 155 int maxTotalMass = masses[1].totalMass; in findSources() 160 if (oneMass.totalMass > maxTotalMass) in findSources() 162 totalMassRatio = oneMass.totalMass / maxTotalMass; in findSources() 163 maxTotalMass = oneMass.totalMass; in findSources() 175 center->x = masses[maxRegionID].massX / masses[maxRegionID].totalMass + 0.5; in findSources() 176 center->y = masses[maxRegionID].massY / masses[maxRegionID].totalMass + 0.5; in findSources()
|
/dports/games/pioneer/pioneer-20210723/src/ |
H A D | Orbit.h | 15 static double OrbitalPeriodTwoBody(double semiMajorAxis, double totalMass, double bodyMass); 29 …void SetShapeAroundBarycentre(double semiMajorAxis, double totalMass, double bodyMass, double ecce… 30 void SetShapeAroundPrimary(double semiMajorAxis, double totalMass, double eccentricity); 42 vector3d OrbitalVelocityAtTime(double totalMass, double t) const;
|
H A D | Orbit.cpp | 17 double Orbit::OrbitalPeriodTwoBody(double semiMajorAxis, double totalMass, double bodyMass) in OrbitalPeriodTwoBody() argument 38 const double m2 = (totalMass - bodyMass); in OrbitalPeriodTwoBody() 39 const double a = r1 * totalMass / m2; in OrbitalPeriodTwoBody() 41 return 2.0 * M_PI * sqrt(a3 / (G * totalMass)); in OrbitalPeriodTwoBody() 51 static double calc_velocity_area_per_sec_gravpoint(double semiMajorAxis, double totalMass, double b… in calc_velocity_area_per_sec_gravpoint() argument 55 … < 1.0) ? (1 - e2) : (e2 - 1.0)) / Orbit::OrbitalPeriodTwoBody(semiMajorAxis, totalMass, bodyMass); in calc_velocity_area_per_sec_gravpoint() 214 vector3d Orbit::OrbitalVelocityAtTime(double totalMass, double t) const in OrbitalVelocityAtTime() argument 219 double mi = G * totalMass; in OrbitalVelocityAtTime() 288 void Orbit::SetShapeAroundBarycentre(double semiMajorAxis, double totalMass, double bodyMass, doubl… in SetShapeAroundBarycentre() argument 292 …m_velocityAreaPerSecond = calc_velocity_area_per_sec_gravpoint(semiMajorAxis, totalMass, bodyMass,… in SetShapeAroundBarycentre()
|
/dports/graphics/reactphysics3d/reactphysics3d-0.8.0/src/body/ |
H A D | RigidBody.cpp | 327 decimal totalMass = decimal(0.0); in computeCenterOfMass() local 341 totalMass += colliderMass; in computeCenterOfMass() 345 if (totalMass > decimal(0.0)) { in computeCenterOfMass() 356 totalMass = decimal(0.0); in computeMassAndInertiaTensorLocal() 372 totalMass += colliderMass; in computeMassAndInertiaTensorLocal() 414 decimal totalMass; in updateLocalInertiaTensorFromColliders() local 435 decimal totalMass = decimal(0.0); in updateMassFromColliders() local 447 totalMass += colliderMass; in updateMassFromColliders() 454 if (totalMass > decimal(0.0)) { in updateMassFromColliders() 496 decimal totalMass; in updateMassPropertiesFromColliders() local [all …]
|
/dports/math/mlpack/mlpack-3.4.2/src/mlpack/methods/reinforcement_learning/environment/ |
H A D | cart_pole.hpp | 131 totalMass(massCart + massPole), in CartPole() 163 state.AngularVelocity() * sinTheta) / totalMass; in Sample() 165 (length * (4.0 / 3.0 - massPole * cosTheta * cosTheta / totalMass)); in Sample() 166 double xAcc = temp - poleMassLength * thetaAcc * cosTheta / totalMass; in Sample() 258 double totalMass; member in mlpack::rl::CartPole
|
H A D | continuous_double_pole_cart.hpp | 196 double totalMass = massCart; in Dsdt() local 211 totalMass += m1 * (0.25 + 0.75 * sinTheta1 * sinTheta1); in Dsdt() 212 totalMass += m2 * (0.25 + 0.75 * sinTheta2 * sinTheta2); in Dsdt() 215 double xAcc = totalForce / totalMass; in Dsdt()
|
H A D | double_pole_cart.hpp | 202 double totalMass = massCart; in Dsdt() local 217 totalMass += m1 * (0.25 + 0.75 * sinTheta1 * sinTheta1); in Dsdt() 218 totalMass += m2 * (0.25 + 0.75 * sinTheta2 * sinTheta2); in Dsdt() 221 double xAcc = totalForce / totalMass; in Dsdt()
|
/dports/science/opensph/sph-7de6c044339f649e3d19e61f735a6a24572b792a/core/physics/test/ |
H A D | Integrals.cpp | 72 const Float totalMass = sphereVolume(radius) * rho0; variable 73 REQUIRE(momentum.evaluate(storage) == approx(Vector(0.2_f, 0._f, -0.1_f) * totalMass, 1.e-3_f)); 76 const Float expected = 2._f / 5._f * totalMass * sqr(radius) * 4._f; 115 const Float totalMass = sphereVolume(3._f) * rho0; variable 116 REQUIRE(TotalKineticEnergy().evaluate(storage) == approx(15._f * totalMass)); 117 REQUIRE(TotalInternalEnergy().evaluate(storage) == approx(20._f * totalMass)); 118 REQUIRE(TotalEnergy().evaluate(storage) == approx(35._f * totalMass));
|
/dports/science/cdk/cdk-cdk-2.3/base/silent/src/main/java/org/openscience/cdk/silent/ |
H A D | FragmentAtom.java | 81 double totalMass = 0.0; in getExactMass() local 83 totalMass += atom.getExactMass(); in getExactMass() 85 return totalMass; in getExactMass()
|
/dports/science/cdk/cdk-cdk-2.3/base/data/src/main/java/org/openscience/cdk/ |
H A D | FragmentAtom.java | 81 double totalMass = 0.0; in getExactMass() local 83 totalMass += atom.getExactMass(); in getExactMass() 85 return totalMass; in getExactMass()
|
/dports/devel/bullet/bullet3-3.21/examples/FractureDemo/ |
H A D | btFractureDynamicsWorld.cpp | 149 btScalar totalMass = 0.f; in glueCallback() local 161 totalMass += fracObj->m_masses[c]; in glueCallback() 170 totalMass += fracObj->m_masses[0]; in glueCallback() 214 totalMass += curMass; in glueCallback() 219 …btCompoundShape* newCompound = btFractureBody::shiftTransformDistributeMass(compound, totalMass, s… in glueCallback() 224 newCompound->calculateLocalInertia(totalMass, localInertia); in glueCallback() 225 …btFractureBody* newBody = new btFractureBody(totalMass, 0, newCompound, localInertia, &massArray[0… in glueCallback() 284 btScalar totalMass = 0; in addNewBody() local 286 totalMass += masses[i]; in addNewBody() 289 …btFractureBody* newBody = new btFractureBody(totalMass, 0, newCompound, localInertia, masses, newC… in addNewBody()
|
/dports/devel/py-bullet3/bullet3-3.21/examples/FractureDemo/ |
H A D | btFractureDynamicsWorld.cpp | 149 btScalar totalMass = 0.f; in glueCallback() local 161 totalMass += fracObj->m_masses[c]; in glueCallback() 170 totalMass += fracObj->m_masses[0]; in glueCallback() 214 totalMass += curMass; in glueCallback() 219 …btCompoundShape* newCompound = btFractureBody::shiftTransformDistributeMass(compound, totalMass, s… in glueCallback() 224 newCompound->calculateLocalInertia(totalMass, localInertia); in glueCallback() 225 …btFractureBody* newBody = new btFractureBody(totalMass, 0, newCompound, localInertia, &massArray[0… in glueCallback() 284 btScalar totalMass = 0; in addNewBody() local 286 totalMass += masses[i]; in addNewBody() 289 …btFractureBody* newBody = new btFractureBody(totalMass, 0, newCompound, localInertia, masses, newC… in addNewBody()
|
/dports/science/gromacs/gromacs-2021.4/src/gromacs/pbcutil/ |
H A D | com.cpp | 106 double totalMass = 0; in calculateCOM() local 115 totalMass += mass; in calculateCOM() 118 svmul(1.0 / totalMass, com, com); in calculateCOM()
|
/dports/misc/dartsim/dart-6.11.1/dart/dynamics/ |
H A D | ReferentialSkeleton.cpp | 1005 double totalMass = 0.0; in getCOM() local 1010 totalMass += bn->getMass(); in getCOM() 1013 assert(totalMass != 0.0); in getCOM() 1014 return com / totalMass; in getCOM() 1029 double totalMass = 0.0; 1035 totalMass += bn->getMass(); 1038 assert(totalMass != 0.0); 1039 return result / totalMass; 1091 double totalMass = 0.0; 1114 assert(totalMass != 0.0); [all …]
|
/dports/science/py-avogadrolibs/avogadrolibs-1.94.0/avogadro/qtplugins/importpqr/ |
H A D | pqrrequest.cpp | 202 float totalMass = 0.0; in getMolMass() local 243 totalMass += (subscript * Core::Elements::mass(atomicNum)); in getMolMass() 246 return totalMass; in getMolMass()
|
/dports/science/avogadrolibs/avogadrolibs-1.94.0/avogadro/qtplugins/importpqr/ |
H A D | pqrrequest.cpp | 202 float totalMass = 0.0; in getMolMass() local 243 totalMass += (subscript * Core::Elements::mass(atomicNum)); in getMolMass() 246 return totalMass; in getMolMass()
|
/dports/devel/bullet/bullet3-3.21/src/BulletCollision/CollisionShapes/ |
H A D | btCompoundShape.cpp | 206 btScalar totalMass = 0; in calculatePrincipalAxisTransform() local 214 totalMass += masses[k]; in calculatePrincipalAxisTransform() 217 btAssert(totalMass > 0); in calculatePrincipalAxisTransform() 219 center /= totalMass; in calculatePrincipalAxisTransform()
|
/dports/graphics/blender/blender-2.91.0/extern/bullet2/src/BulletCollision/CollisionShapes/ |
H A D | btCompoundShape.cpp | 206 btScalar totalMass = 0; in calculatePrincipalAxisTransform() local 214 totalMass += masses[k]; in calculatePrincipalAxisTransform() 217 btAssert(totalMass > 0); in calculatePrincipalAxisTransform() 219 center /= totalMass; in calculatePrincipalAxisTransform()
|
/dports/games/supertuxkart/SuperTuxKart-1.2-src/lib/bullet/src/BulletCollision/CollisionShapes/ |
H A D | btCompoundShape.cpp | 220 btScalar totalMass = 0; in calculatePrincipalAxisTransform() local 228 totalMass += masses[k]; in calculatePrincipalAxisTransform() 231 btAssert(totalMass>0); in calculatePrincipalAxisTransform() 233 center /= totalMass; in calculatePrincipalAxisTransform()
|
/dports/devel/godot-tools/godot-3.2.3-stable/thirdparty/bullet/BulletCollision/CollisionShapes/ |
H A D | btCompoundShape.cpp | 206 btScalar totalMass = 0; in calculatePrincipalAxisTransform() local 214 totalMass += masses[k]; in calculatePrincipalAxisTransform() 217 btAssert(totalMass > 0); in calculatePrincipalAxisTransform() 219 center /= totalMass; in calculatePrincipalAxisTransform()
|
/dports/graphics/urho3d/Urho3D-1.7.1/Source/ThirdParty/Bullet/src/BulletCollision/CollisionShapes/ |
H A D | btCompoundShape.cpp | 220 btScalar totalMass = 0; in calculatePrincipalAxisTransform() local 228 totalMass += masses[k]; in calculatePrincipalAxisTransform() 231 btAssert(totalMass>0); in calculatePrincipalAxisTransform() 233 center /= totalMass; in calculatePrincipalAxisTransform()
|
/dports/devel/py-bullet3/bullet3-3.21/src/BulletCollision/CollisionShapes/ |
H A D | btCompoundShape.cpp | 206 btScalar totalMass = 0; in calculatePrincipalAxisTransform() local 214 totalMass += masses[k]; in calculatePrincipalAxisTransform() 217 btAssert(totalMass > 0); in calculatePrincipalAxisTransform() 219 center /= totalMass; in calculatePrincipalAxisTransform()
|