import { ShapePrimitive } from './shape-primitive'; /** * The `Rectangle` object is an area defined by its position, as indicated by its top-left corner * point (`x`, `y`) and by its `width` and its `height`, including a `roundness` property that * defines the roundness of the rounded corners. * @memberof maths */ export declare class Rectangle extends ShapePrimitive { /** * The X coordinate of the upper-left corner of the rectangle */ x: number; /** * The Y coordinate of the upper-left corner of the rectangle */ y: number; /** * The overall width of this rectangle */ width: number; /** * The overall height of this rectangle */ height: number; /** * Controls the roundness of the rounded corners */ roundness: number; /** * @param x - The X coordinate of the upper-left corner of the rectangle * @param y - The Y coordinate of the upper-left corner of the rectangle * @param width - The overall width of this rectangle * @param height - The overall height of this rectangle * @param roundness - Controls the roundness of the rounded corners */ constructor(x?: number, y?: number, width?: number, height?: number, roundness?: number); /** * Returns the framing rectangle of the rectangle as a Rectangle object * @param out - optional rectangle to store the result * @returns The framing rectangle */ getBounds(out?: Rectangle): Rectangle; /** * Creates a clone of this rectangle. * @returns - A copy of the rectangle. */ clone(): Rectangle; /** * Copies another rectangle to this one. * @param rectangle - The rectangle to copy from. * @returns Returns itself. */ copyFrom(rectangle: Rectangle): this; /** * Copies this rectangle to another one. * @param rectangle - The rectangle to copy to. * @returns Returns given parameter. */ copyTo(rectangle: Rectangle): Rectangle; build(points: number[]): void; triangulate(points: number[], vertices: number[], verticesOffset: number, indices: number[], indicesOffset: number): void; }