import { Vector2d } from "../math/vector2d.ts"; import { LineVertices, Polygon } from "./polygon.ts"; /** * a line segment Object * @category Geometry * @param x - origin point of the Line * @param y - origin point of the Line * @param points - array of vectors defining the Line */ export declare class Line extends Polygon { /** * Returns true if the Line contains the given point * @param x - x coordinate or a vector point to check * @param [y] - y coordinate * @returns true if contains * @example * if (line.contains(10, 10)) { * // do something * } * // or * if (line.contains(myVector2d)) { * // do something * } */ contains(x: number, y: number): boolean; contains(vector: Vector2d): boolean; /** * Computes the calculated collision edges and normals. * This **must** be called if the `points` array, `angle`, or `offset` is modified manually. * @returns this instance for object chaining */ recalc(): this; /** * clone this line segment * @returns new Line */ clone(): Line; } export declare const linePool: import("../system/pool.ts").Pool; //# sourceMappingURL=line.d.ts.map