IMapSampler

References
public interface IMapSampler
Represents methods to sample a NumberMap at integral and partial coordinates.

Methods

IntegrateCircle

#
Gets the average value within a circle.
double IntegrateCircle(
circle
Circle to sample.
)
Average value within circle.

IntegrateEllipse

#
Gets the average value within a circle.
double IntegrateEllipse(
ellipse
Ellipse to sample.
)
Average value within circle.

IntegrateRectangle

#
Gets the average value within a sample aligned box.
double IntegrateRectangle(
Rectangle
rectangle
Rectangle to sample.
)
Average value within box.

IntegrateRectangle

#
Gets the average value within a box.
double IntegrateRectangle(
RectangleF
rectangle
Rectangle to sample.
)
Average value within box.

InterpolateCubic

#
Sample the map at a partial coordinate using cubic interpolation.
double InterpolateCubic(
x,
X coordinate.
y
Y coordinate.
)
Value at (x,y).

InterpolateHermite

#
Sample the map at a partial coordinate using hermite interpolation.
double InterpolateHermite(
x,
X coordinate.
y
Y coordinate.
)
Value at (x,y).

InterpolateLinear

#
Sample the map at a partial coordinate using linear interpolation.
double InterpolateLinear(
x,
X coordinate.
y
Y coordinate.
)
Value at (x,y).

InterpolateNearest

#
Sample the map at a partial coordinate using nearest interpolation.
double InterpolateNearest(
x,
X coordinate.
y
Y coordinate.
)
Value at (x,y).

ProjectX

#
Project an x coordinate into the interior map space.
int ProjectX(
x
X coordinate.
)
Projected coordinate.

ProjectX

#
Project an x coordinate into the interior map space.
long ProjectX(
x
X coordinate.
)
Projected coordinate.

ProjectY

#
Project an y coordinate into the interior map space.
int ProjectY(
y
Y coordinate.
)
Projected coordinate.

ProjectY

#
Project an y coordinate into the interior map space.
long ProjectY(
y
Y coordinate.
)
Projected coordinate.

ValueAt

#
Sample the map at an integral coordinate.
double ValueAt(
x,
X coordinate.
y
Y coordinate.
)
Value at (x,y).