IMapSampler

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

Methods

IntegrateCircle

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

IntegrateEllipse

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

IntegrateRectangle

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

IntegrateRectangle

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

InterpolateCubic

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

InterpolateHermite

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

InterpolateLinear

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

InterpolateNearest

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

ProjectX

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

ProjectX

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

ProjectY

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

ProjectY

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

ValueAt

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