示例#1
0
        /// <summary>
        /// Creates a new allocator with a vertex welding distance in the map
        /// unit range provided.
        /// </summary>
        /// <param name="weldingEpsilon">The welding map unit range. This value
        /// should be greater than zero.</param>
        public VertexAllocator(double weldingEpsilon)
        {
            Debug.Assert(weldingEpsilon > 0, "Cannot have a zero or negative welding epsilon");

            grid = new QuantizedGrid <int>(weldingEpsilon);
        }
示例#2
0
 /// <summary>
 /// Creates a tracker which has a resolution of sloped lines by the
 /// epsilon provided.
 /// </summary>
 /// <param name="epsilon">How far apart the slope or y-intercept can be
 /// before they are considered the same.</param>
 public CollinearTracker(double epsilon)
 {
     slopeInterceptToIndex = new QuantizedGrid <int>(epsilon);
 }