Package math

Examples of math.Matrix


   * Returns the momentum of inertia tensor corresponding to a homgenuously
   * filled sphere of the given radius and mass.
   */
  public static Matrix getSphereInertialTensor(double m, double r) {
    double momentum = 0.4f * m * r * r;
    return new Matrix(new double[][] { { momentum, 0, 0 },
        { 0, momentum, 0 }, { 0, 0, momentum } });
  }
View Full Code Here

TOP

Related Classes of math.Matrix

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.