Examples of azimuthal()


Examples of ca.eandb.jmist.math.SphericalCoordinates.azimuthal()

    public Point2 project(HPoint3 q) {
      Vector3 v = q.isPoint() ? q.toPoint3().unitVectorFromOrigin()
                          : q.toVector3().unit();
      SphericalCoordinates sc = SphericalCoordinates.fromCartesian(v,
          BASIS);
      double x = sc.azimuthal() / (2.0 * Math.PI);
      double y = 0.5 * (1.0 - Math.cos(sc.polar()));
      if (x < 0.0) {
        x += 1.0;
      }
      return new Point2(x, y);
View Full Code Here

Examples of ca.eandb.jmist.math.SphericalCoordinates.azimuthal()

    if (NdotI * NdotO < 0.0) {
      return lambda.getColorModel().getBlack(lambda);
    }

    double phiO = omegaO.azimuthal() < 0.0 ? omegaO.azimuthal() + 2.0 * Math.PI : omegaO.azimuthal();
    double phiP = omegaP.azimuthal() < 0.0 ? omegaP.azimuthal() + 2.0 * Math.PI : omegaP.azimuthal();
    phiP -= phiO;
    if (phiP < 0.0) { phiP += 2.0 * Math.PI; }

    int J = F.length;
    for (int j = 0; j < J; j++) {
View Full Code Here

Examples of ca.eandb.jmist.math.SphericalCoordinates.azimuthal()

    if (NdotI * NdotO < 0.0) {
      return lambda.getColorModel().getBlack(lambda);
    }

    double phiO = omegaO.azimuthal() < 0.0 ? omegaO.azimuthal() + 2.0 * Math.PI : omegaO.azimuthal();
    double phiP = omegaP.azimuthal() < 0.0 ? omegaP.azimuthal() + 2.0 * Math.PI : omegaP.azimuthal();
    phiP -= phiO;
    if (phiP < 0.0) { phiP += 2.0 * Math.PI; }

    int J = F.length;
    for (int j = 0; j < J; j++) {
View Full Code Here

Examples of ca.eandb.jmist.math.SphericalCoordinates.azimuthal()

    if (NdotI * NdotO < 0.0) {
      return lambda.getColorModel().getBlack(lambda);
    }

    double phiO = omegaO.azimuthal() < 0.0 ? omegaO.azimuthal() + 2.0 * Math.PI : omegaO.azimuthal();
    double phiP = omegaP.azimuthal() < 0.0 ? omegaP.azimuthal() + 2.0 * Math.PI : omegaP.azimuthal();
    phiP -= phiO;
    if (phiP < 0.0) { phiP += 2.0 * Math.PI; }

    int J = F.length;
    for (int j = 0; j < J; j++) {
View Full Code Here

Examples of ca.eandb.jmist.math.SphericalCoordinates.azimuthal()

  /* (non-Javadoc)
   * @see ca.eandb.jmist.framework.RayShader#shadeRay(ca.eandb.jmist.math.Ray3, ca.eandb.jmist.framework.color.WavelengthPacket)
   */
  public Color shadeRay(Ray3 ray, WavelengthPacket lambda) {
    SphericalCoordinates sc = SphericalCoordinates.fromCartesian(ray.direction(), basis);
    double theta = -sc.azimuthal();
    double r = 0.5 * (1.0 - (Math.PI - sc.polar()) / Math.PI);
    Point2 uv = new Point2(
        0.5 + r * Math.cos(theta),
        0.5 + r * Math.sin(theta));
    return texture.evaluate(uv, lambda);
View Full Code Here

Examples of ca.eandb.jmist.math.SphericalCoordinates.azimuthal()

   * @see ca.eandb.jmist.framework.RayShader#shadeRay(ca.eandb.jmist.math.Ray3, ca.eandb.jmist.framework.color.WavelengthPacket)
   */
  public Color shadeRay(Ray3 ray, WavelengthPacket lambda) {
    SphericalCoordinates sc = SphericalCoordinates.fromCartesian(ray.direction(), basis);
    Point2 uv = new Point2(
        (sc.azimuthal() + Math.PI) / (2.0 * Math.PI),
        sc.polar() / Math.PI);
    return texture.evaluate(uv, lambda);
  }

}
View Full Code Here

Examples of ca.eandb.jmist.math.SphericalCoordinates.azimuthal()

   */
  public Color shadeRay(Ray3 ray, WavelengthPacket lambda) {
    if (ray.direction().dot(basis.w()) >= 0.0) {
      SphericalCoordinates sc = SphericalCoordinates.fromCartesian(ray.direction(), basis);
      Point2 uv = new Point2(
          (sc.azimuthal() + Math.PI) / (2.0 * Math.PI),
          2.0 * sc.polar() / Math.PI);
      return texture.evaluate(uv, lambda);
    } else {
      return background.shadeRay(ray, lambda);
    }
View Full Code Here

Examples of ca.eandb.jmist.math.SphericalCoordinates.azimuthal()

                incidentAngle.polar(),
                incidentAngle.azimuthal(),
                wavelengthIndex,
                sensor,
                exitantAngle.polar(),
                exitantAngle.azimuthal(),
                solidAngle,
                projectedSolidAngle,
                this.outstandingSamplesPerMeasurement,
                colorToCSV(raw),
                colorToCSV(reflectance),
View Full Code Here

Examples of ca.eandb.jmist.math.SphericalCoordinates.azimuthal()

    // TODO implement this directly so it's more efficient.
    SphericalCoordinates result = uniformOnSphere(radius, ru, rv);

    if (result.polar() > (Math.PI / 2.0))
      result = new SphericalCoordinates(Math.PI - result.polar(), result.azimuthal(), radius);

    return result;

  }
View Full Code Here

Examples of ca.eandb.jmist.math.SphericalCoordinates.azimuthal()

                incidentAngle.polar(),
                incidentAngle.azimuthal(),
                wavelength,
                sensor,
                exitantAngle.polar(),
                exitantAngle.azimuthal(),
                solidAngle,
                projectedSolidAngle,
                this.samplesPerMeasurement,
                hits,
                reflectance,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.