Package ca.eandb.jmist.math

Examples of ca.eandb.jmist.math.PolarCoordinates


  public static PolarCoordinates uniformOnDisc(double radius, double ru, double rv) {

    assert(0.0 <= ru && ru <= 1.0);
    assert(0.0 <= rv && rv <= 1.0);

    return new PolarCoordinates(
        2.0 * Math.PI * ru,
        radius * Math.sqrt(rv)
    );

  }
View Full Code Here

TOP

Related Classes of ca.eandb.jmist.math.PolarCoordinates

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.