export declare let DEFAULT_SAMPLES: number; /** * Sets the number of {@link DEFAULT_SAMPLES} for various operations. * * @param n */ export declare const setDefaultSamples: (n: number) => number; export interface SamplingOpts { /** * Number of points to sample & return. Defaults to the implementing * type's default samples if neither this nor `theta` option is * given. */ num: number; /** * Defines the target angle between sampled points. If greater than the * actual range of the arc, only the two end points will be returned at * most. This option is used to derive a `num` value and takes priority if * `num` is given as well. * * This option is useful to adapt the sampling based on angular resolution, * rather than a fixed number of samples. * * Note: Currently, in thi.ng/geom this option is only used for resampling * arcs, circles or ellipses. */ theta: number; /** * Approximate desired distance between sampled result points. If * given, takes priority over the `num` option, but the latter MIGHT * be used as part of the sampling process (implementation * specific). */ dist: number; /** * If `true`, the shape's end point will be included in the result * array. The default setting for open geometries is `true`, for * closed ones `false`. This option has no influence on any internal * resolution calculation. * * For open geometry this option is useful to when re-sampling paths * of consecutive segments, where the end points of each segment * coincide with the start points of the next segment. For all but * the last segment, this option should be `false` and so can be * used to avoid duplicate vertices in the concatenated result. * * When sampling closed shapes, enabling this option will include an * extra point (start), i.e. if the `num` option was given, results * in `num+1` points. */ last: boolean; /** * Optional parametric (normalized) start position. * * @remarks * Note: Currently, in thi.ng/geom this option is only used for resampling * circles or ellipses. * * @defaultValue 0 */ start: number; } //# sourceMappingURL=sample.d.ts.map