Package ca.grimoire.jnoise.modules.map

Examples of ca.grimoire.jnoise.modules.map.Sawtooth


    if (!hasAmplitude)
      throw new BuilderException ("Sawtooth requires amplitude.");
    if (frequency < 0.0)
      throw new BuilderException ("Sawtooth requires non-negative frequency.");

    return new Sawtooth (getSource ().createModule (), frequency, amplitude);
  }
View Full Code Here


* </blockquote>
*/
public final class Gradient implements CompositeModule {

  private static Sawtooth composeGradient (double frequency, double amplitude) {
    return new Sawtooth (Plane.MODULE, frequency, amplitude);
  }
View Full Code Here

* </blockquote>
*/
public final class Sphere implements CompositeModule {

  private static Sawtooth composeCylinder (double frequency, double amplitude) {
    return new Sawtooth (Radius.MODULE, frequency, amplitude);
  }
View Full Code Here

* </blockquote>
*/
public final class Cylinder implements CompositeModule {

  private static Sawtooth composeCylinder (double frequency, double amplitude) {
    return new Sawtooth (Axis.MODULE, frequency, amplitude);
  }
View Full Code Here

TOP

Related Classes of ca.grimoire.jnoise.modules.map.Sawtooth

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.