public readonly struct Bump : IStorable
A single bump.

Constructors

Bump

#
public Bump(double centre, double radius, double amplitude)
centre (double)
radius (double)
amplitude (double)

Bump

#
public Bump(IReader reader)
reader (IReader)

Properties

Amplitude

#
public double Amplitude { get; }
Gets the amplitude of this bump.

Centre

#
public double Centre { get; }
Gets the centre location of this bump.

Radius

#
public double Radius { get; }
Gets the radius of this bump.

Methods

Evaluate

#
public double Evaluate(double x, BumpShape shape)
Evaluate this bump.
x (double)X parameter.
shape (BumpFunction.BumpShape)Shape of bump.
Value of x.

EvaluateDerivative

#
public double EvaluateDerivative(double x, BumpShape shape)
Evaluate the derivative of this bump.
x (double)
shape (BumpFunction.BumpShape)

Store

#
public void Store(IWriter writer)
writer (IWriter)
Store

WithAmplitude

#
public Bump WithAmplitude(double amplitude)
amplitude (double)

WithCentre

#
public Bump WithCentre(double centre)
centre (double)

WithRadius

#
public Bump WithRadius(double radius)
radius (double)

WithTip

#
public Bump WithTip(Point2d point)
point (Point2d)