Line.GetValue

Returns the output value from the noise module given the one-dimensional coordinate of the specified input value located on the line segment.

@param p The distance along the line segment (ranges from 0.0 to 1.0)

@returns The output value from the noise module.

@pre A noise module was passed to the SetMod() method. @pre The start and end points of the line segment were specified.

The output value is generated by the noise module passed to the SetMod() method. This value may be attenuated (moved toward 0.0) as @a p approaches either end of the line segment; this is the default behavior.

If the value is not to be attenuated, @a p can safely range outside the 0.0 to 1.0 range; the output value will be extrapolated along the line that this segment is part of.

class Line
const
double
GetValue
(
double p
)

Meta