/** @packageDocumentation * @module CartesianGeometry */ import { Point2d, Vector2d } from "../../../geometry3d/Point2dVector2d"; import { XAndY } from "../../../geometry3d/XYZProps"; import { ImplicitCurve2d } from "./ImplicitCurve2d"; import { UnboundedLine2dByPointAndNormal } from "./UnboundedLine2d"; /** * Internal class for a complete circle in the xy plane, with center and radius stored. * @internal */ export declare class UnboundedCircle2dByCenterAndRadius extends ImplicitCurve2d { /** The circle's center. */ center: Point2d; /** The circle radius. */ radius: number; private constructor(); /** Return a clone of this circle. */ clone(): UnboundedCircle2dByCenterAndRadius; /** Return a clone of this circle, with radius negated. */ cloneNegateRadius(): UnboundedCircle2dByCenterAndRadius; /** * Create an ImplicitCircle2d from XY parts of its center and its radius. * @param centerX x coordinate of center * @param centerY y coordinate of center * @param radius circle radius * @returns newly created circle object */ static createXYRadius(centerX: number, centerY: number, radius: number): UnboundedCircle2dByCenterAndRadius; /** * Create an ImplicitCircle2d from an xy object and a radius. * * Zero radius is valid. * * The input coordinates are copied -- the center is NOT captured. * @param center xy coordinates of center * @param radius circle radius * @returns newly created circle object */ static createPointRadius(center: XAndY, radius: number): UnboundedCircle2dByCenterAndRadius; /** * Returns gradient of the implicit function. * @param xy space point * @returns squared distance to center minus squared radius. */ functionValue(xy: XAndY): number; /** * Returns gradient of the implicit function. * @param xy space point */ gradient(xy: XAndY): Vector2d; /** * Emit circle points for which a vector to the space point is perpendicular to the circle. * * For a non-zero radius circle, there are two perpendiculars. The one on the side of the space point is emitted first. * * For a zero radius circle, the vector from center to the space point is the only perpendicular. * @param spacePoint the space point. * @handler the handler to receive all the points on the curve and radians where perpendicular happens. */ emitPerpendiculars(spacePoint: Point2d, handler: (curvePoint: Point2d, radians: number | undefined) => any): void; /** * Returns true if the circle radius is near zero. */ isDegenerate(): boolean; /** * Test if the centers and radii of two circles are close. * @param other second circle * @returns true if identical to tolerance. */ isSameCircle(other: UnboundedCircle2dByCenterAndRadius, negatedRadiiAreEqual: boolean): boolean; /** * Compute intersections with another circle. * @param other second circle * @return array of 0, 1, or 2 points of intersection */ intersectCircle(other: UnboundedCircle2dByCenterAndRadius): Point2d[]; /** * Compute intersections with a line * @param line the line. * @return array of 0, 1, or 2 points of intersection */ intersectLine(line: UnboundedLine2dByPointAndNormal): Point2d[]; } //# sourceMappingURL=UnboundedCircle2d.d.ts.map