using System; using L=Science.Physics.GeneralPhysics; namespace ScienceTest.PhysicsTest.GeneralPhysicsTest { /// /// AngularMomentum /// public class AngularMomentumTest { public AngularMomentumTest() { } private string result; public string Result { get{return result;} } public void Compute() { L.Mass m = new L.Mass(); m.kg = 6.0; L.RigidBody ball = new L.RigidBody(m); L.Length r = new L.Length(); r.m = 0.12; ball.SetSphere(r); L.AngularVelocity omega = new L.AngularVelocity(); omega.Z = 10.0*2.0*Math.PI; L.AngularMomentum l = new L.AngularMomentum( ball.RigidBodyMomentOfInertia,omega); result += "I="+l.Z.ToString(); } } } // I=2.17146884216127