UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

92 lines 3.26 kB
/** * @author Alex Goldring 14/05/2018 - Ported to JS using JSweet + manual editing * @author Kaspar Fischer (hbf) 09/05/2013 * @source https://github.com/hbf/miniball * @generated Generated from Java with JSweet 2.2.0-SNAPSHOT - http://www.jsweet.org */ /** * Information about the quality of the computed ball. * @class */ export class Quality { /** * * @param {number} qrInconsistency * @param {number} minConvexCoefficient * @param {number} maxOverlength * @param {number} maxUnderlength * @param {number} iterations * @param {number} supportSize */ constructor(qrInconsistency: number, minConvexCoefficient: number, maxOverlength: number, maxUnderlength: number, iterations: number, supportSize: number); qrInconsistency: number; minConvexCoefficient: number; maxOverlength: number; maxUnderlength: number; iterations: number; supportSize: number; /** * A measure for the quality of the internally used support points. * * The returned number should in theory be zero (but may be non-zero due to rounding errors). * @return {number} */ getQrInconsistency(): number; /** * A measure for the minimality of the computed ball. * * The returned number should in theory be non-zero and positive. Due to rounding errors, it may * be negative. * @return {number} */ getMinConvexCoefficient(): number; /** * The maximal over-length of a point from the input set, relative to the computed miniball's * radius. * * For each point <i>p</i> from the input point set, it is computed how far it is <i>outside</i> * the miniball ("over-length"). The returned number is the maximal such over-length, divided by * the radius of the computed miniball. * * Notice that `getMaxOverlength() == 0` if and only if all points are contained in the * miniball. * * @return {number} the maximal over-length, a number ≥ 0 */ getMaxOverlength(): number; /** * The maximal under-length of a point from the input set, relative to the computed miniball's * radius. * * For each point <i>p</i> from the input point set, it is computed how far one has to walk from * this point towards the boundary of the miniball ("under-length"). The returned number is the * maximal such under-length, divided by the radius of the computed miniball. * * Notice that in theory `getMaxUnderlength()` should be zero, otherwise the computed * miniball is enclosing but not minimal. * * @return {number} the maximal under-length, a number ≥ 0 */ getMaxUnderlength(): number; /** * The number of iterations that the algorithm needed to compute the miniball. * * @return {number} number of iterations */ getIterations(): number; /** * The size of the support. * * Refer to the documentation of {@link Miniball#support()} for more information on the * <i>support</i>. * * @return {number} size of the support */ getSupportSize(): number; /** * * @return {string} */ toString(): string; } //# sourceMappingURL=Quality.d.ts.map