public class Line extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
attenuate()
Returns a flag indicating whether the output value is to be attenuated (moved toward 0.0) as the ends of the line segment are approached by the input value.
|
Module |
getModule()
Returns the noise module that is used to generate the output values.
|
double |
getValue(double p)
Returns the output value from the noise module given the one-dimensional coordinate of the specified input value located on the line segment.
|
void |
setAttenuate(boolean att)
Sets a flag indicating that the output value is to be attenuated (moved toward 0.0) as the ends of the line segment are approached.
|
void |
setEndPoint(double x,
double y,
double z)
Sets the position ( @a x, @a y, @a z ) of the end of the line segment to choose values along.
|
void |
setModule(Module module)
Sets the noise module that is used to generate the output values.
|
void |
setStartPoint(double x,
double y,
double z)
Sets the position ( @a x, @a y, @a z ) of the start of the line segment to choose values along.
|
public Line(Module module)
module - The noise module that is used to generate the output values.public boolean attenuate()
public void setAttenuate(boolean att)
att - A flag that specifies whether the output value is to be attenuated.public void setStartPoint(double x,
double y,
double z)
x - x coordinate of the start position.y - y coordinate of the start position.z - z coordinate of the start position.public void setEndPoint(double x,
double y,
double z)
x - x coordinate of the end position.y - y coordinate of the end position.z - z coordinate of the end position.public Module getModule()
public void setModule(Module module)
module - The noise module that is used to generate the output values.
This noise module must exist for the lifetime of this object, until you pass a new noise module to this method.public double getValue(double p)
p - The distance along the line segment (ranges from 0.0 to 1.0)Copyright © 2013–2017 Flow Powered. All rights reserved.