コード例 #1
0
 public ShapeFieldCacheDistanceValueSource(SpatialContext ctx,
                                           ShapeFieldCacheProvider <IPoint> provider, IPoint from, double multiplier)
 {
     this.ctx        = ctx;
     this.from       = from;
     this.provider   = provider;
     this.multiplier = multiplier;
 }
コード例 #2
0
 public ShapeFieldCacheDistanceValueSource(SpatialContext ctx,
                                           ShapeFieldCacheProvider <IPoint> provider, IPoint from, double multiplier)
 {
     // LUCENENET specific - added guard clauses
     this.ctx        = ctx ?? throw new ArgumentNullException(nameof(ctx));
     this.from       = from ?? throw new ArgumentNullException(nameof(from));
     this.provider   = provider ?? throw new ArgumentNullException(nameof(provider));
     this.multiplier = multiplier;
 }
コード例 #3
0
 public ShapeFieldCacheDistanceValueSource(SpatialContext ctx, ShapeFieldCacheProvider <Point> provider, Point from)
 {
     this.ctx      = ctx;
     this.from     = from;
     this.provider = provider;
 }