Sample(Vector2 position, double weight)

Creates a new Sample with the given position and weigth.

The position is defined within a pixel and must be in the interval 0..1. The weigth also spans from 0 to 1.

Usage:

Sample s = new Sample(0.5, 1.0);

Source

Sample(this.position, this.weight);