Package net.royawesome.jlibnoise.exception

Examples of net.royawesome.jlibnoise.exception.NoModuleException


  }

  @Override
  public double GetValue(double x, double y, double z) {
    if (SourceModule == null)
      throw new NoModuleException();
    return Math.abs(SourceModule[0].GetValue(x, y, z));
  }
View Full Code Here


  }

  @Override
  public double GetValue(double x, double y, double z) {
    if (SourceModule[0] == null)
      throw new NoModuleException();
    return -(SourceModule[0].GetValue(x, y, z));
  }
View Full Code Here

  }

  @Override
  public double GetValue(double x, double y, double z) {
    if (SourceModule[0] == null)
      throw new NoModuleException();
    if (controlPoints.size() >= 4)
      throw new RuntimeException("must have 4 or less control points");

    // Get the output value from the source module.
    double sourceModuleValue = SourceModule[0].GetValue(x, y, z);
View Full Code Here

  }

  @Override
  public double GetValue(double x, double y, double z) {
    if (SourceModule[0] == null)
      throw new NoModuleException();

    double value = SourceModule[0].GetValue(x, y, z);
    if (value < lowerBound) {
      return lowerBound;
    } else if (value > upperBound) {
View Full Code Here

  }

  @Override
  public double GetValue(double x, double y, double z) {
    if (SourceModule[0] == null)
      throw new NoModuleException();
    double value = SourceModule[0].GetValue(x, y, z);
    return (Math.pow(Math.abs((value + 1.0) / 2.0), exponent) * 2.0 - 1.0);
  }
View Full Code Here

  }

  @Override
  public double GetValue(double x, double y, double z) {
    if (SourceModule[0] == null)
      throw new NoModuleException();

    return SourceModule[0].GetValue(x, y, z) * scale + bias;
  }
View Full Code Here

  }

  @Override
  public double GetValue(double x, double y, double z) {
    if (SourceModule[0] == null)
      throw new NoModuleException();

    double nx = (x1Matrix * x) + (y1Matrix * y) + (z1Matrix * z);
    double ny = (x2Matrix * x) + (y2Matrix * y) + (z2Matrix * z);
    double nz = (x3Matrix * x) + (y3Matrix * y) + (z3Matrix * z);
    return SourceModule[0].GetValue(nx, ny, nz);
View Full Code Here

  }

  @Override
  public double GetValue(double x, double y, double z) {
    if (SourceModule[0] == null)
      throw new NoModuleException();

    return SourceModule[0].GetValue(x * xScale, y * yScale, z * zScale);
  }
 
View Full Code Here

  }

  @Override
  public double GetValue(double x, double y, double z) {
    if (SourceModule[0] == null)
      throw new NoModuleException();

    // Get the output value from the source module.
    double sourceModuleValue = SourceModule[0].GetValue(x, y, z);

    // Find the first element in the control point array that has a value
View Full Code Here

  }

  @Override
  public double GetValue(double x, double y, double z) {
    if (SourceModule[0] == null)
      throw new NoModuleException();

    // Get the values from the three noise::module::Perlin noise modules and
    // add each value to each coordinate of the input value.  There are also
    // some offsets added to the coordinates of the input values.  This prevents
    // the distortion modules from returning zero if the (x, y, z) coordinates,
View Full Code Here

TOP

Related Classes of net.royawesome.jlibnoise.exception.NoModuleException

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.