/** @packageDocumentation * @module CartesianGeometry */ import { Arc3d } from "./Arc3d"; import { CurveLocationDetailPair } from "./CurveLocationDetail"; import { LineSegment3d } from "./LineSegment3d"; /** * The class has static methods to compute circles and lines with specified constrained (tangent to other lines/circles, * perpendicular to other lines/circles, or a specified circle radius). * * z components of the input curves are completely ignored. * * In this API, a `LineSegment3d` input identifies the underlying unbounded line by its endpoints. The segment * itself is bounded, but the geometric line constraint is applied as unbounded. * * Each API not only returns the circles or lines that satisfy the constraints but also captures the input curve * location details where the tangency/perpendicularity happens. Each returned element contains: * * the curve (circle or line) that satisfies the constraints. * * an array of {@link CurveLocationDetailPair} objects, where each pair holds: * * `detailA`: the result curve with the contact point and fraction on the curve. * * `detailB`: the input constraint curve with the same contact point and fraction on the constraint curve. * @alpha */ export declare class ConstrainedCurve2d { /** * Return all (i.e., up to 4) circles that are tangent to 3 given lines plus data about tangent points/fractions. * @param lineA first line * @param lineB second line * @param lineC third line */ static circlesTangentLineLineLine(lineA: LineSegment3d, lineB: LineSegment3d, lineC: LineSegment3d): { curve: Arc3d; details: CurveLocationDetailPair[]; }[] | undefined; /** * Return all (i.e., up to 2) unbounded lines perpendicular to a line and tangent to a circle plus data about * perp/tangent points/fractions. * @param line the line * @param circle the circle */ static linesPerpLineTangentCircle(line: LineSegment3d, circle: Arc3d): { curve: LineSegment3d; details: CurveLocationDetailPair[]; }[] | undefined; /** * Return all (i.e., 4) variants of the line perpendicular to 2 circles (line between centers, with ends at * crossing points on respective circles) plus data about perp points/fractions. * @param circleA first circle * @param circleB second circle */ static linesPerpCirclePerpCircle(circleA: Arc3d, circleB: Arc3d): { curve: LineSegment3d; details: CurveLocationDetailPair[]; }[] | undefined; /** * Return all (i.e., up to 2) unbounded lines perpendicular to a line and a circle plus data about perp points/fractions. * @param line the line * @param circle the circle */ static linesPerpLinePerpCircle(line: LineSegment3d, circle: Arc3d): { curve: LineSegment3d; details: CurveLocationDetailPair[]; }[] | undefined; /** * Return all (i.e., up to 4) unbounded lines perpendicular to a circle and tangent to a circle plus data about * perp/tangent points/fractions. * Note that multiple colinear lines are returned tagged with diametrically opposing points of circleA. * @param circleA first circle (for perpendicular constraint) * @param circleB second circle (for tangent constraint) */ static linesPerpCircleTangentCircle(circleA: Arc3d, circleB: Arc3d): { curve: LineSegment3d; details: CurveLocationDetailPair[]; }[] | undefined; /** * Return all (i.e., up to 4) unbounded lines tangent to 2 circles plus data about tangent points/fractions. * * There are 4 lines if there is neither intersection nor containment between the circles * * There are 2 lines if the circles intersect * * There are no lines if one circle is entirely inside the other. * @param circleA first circle * @param circleB second circle */ static linesTangentCircleCircle(circleA: Arc3d, circleB: Arc3d): { curve: LineSegment3d; details: CurveLocationDetailPair[]; }[] | undefined; /** * Return all (i.e., up to 8) circles tangent to two lines and a circle plus data about tangent points/fractions. * @param lineA first line * @param lineB second line * @param circle the circle */ static circlesTangentLineLineCircle(lineA: LineSegment3d, lineB: LineSegment3d, circle: Arc3d): { curve: Arc3d; details: CurveLocationDetailPair[]; }[] | undefined; /** * Return all (i.e., up to 4) circles tangent to 2 circles and a line plus data about tangent points/fractions. * @param circleA first circle * @param circleB second circle * @param line the line */ static circlesTangentCircleCircleLine(circleA: Arc3d, circleB: Arc3d, line: LineSegment3d): { curve: Arc3d; details: CurveLocationDetailPair[]; }[] | undefined; /** * Return all (i.e., up to 8) circles tangent to 3 circles plus data about tangent points/fractions. * @param circleA first circle * @param circleB second circle * @param circleC third circle */ static circlesTangentCircleCircleCircle(circleA: Arc3d, circleB: Arc3d, circleC: Arc3d): { curve: Arc3d; details: CurveLocationDetailPair[]; }[] | undefined; /** * Compute circles of specified radius tangent to each of the lines plus data about tangent points/fractions. * * There are normally 4 circles. * * Returns undefined when the lines are parallel. * @param lineA first line * @param lineB second line * @param radius radius of tangent circles. */ static circlesTangentLineLineRadius(lineA: LineSegment3d, lineB: LineSegment3d, radius: number): { curve: Arc3d; details: CurveLocationDetailPair[]; }[] | undefined; /** * Compute circles of specified radius tangent to both a circle and a line plus data about tangent points/fractions. * * There can be 0 to 8 circles. * @param circle the circle * @param line the line * @param radius radius of tangent circles */ static circlesTangentCircleLineRadius(circle: Arc3d, line: LineSegment3d, radius: number): { curve: Arc3d; details: CurveLocationDetailPair[]; }[] | undefined; /** * Compute circles of specified radius tangent to both circles plus data about tangent points/fractions. * * There can be 0 to 8 circles. * @param circleA the first circle * @param circleB the second circle * @param radius radius of tangent circles */ static circlesTangentCircleCircleRadius(circleA: Arc3d, circleB: Arc3d, radius: number): { curve: Arc3d; details: CurveLocationDetailPair[]; }[] | undefined; } //# sourceMappingURL=ConstrainedCurve2d.d.ts.map