/** @packageDocumentation * @module CartesianGeometry */ import { Point2d, Vector2d } from "../../../geometry3d/Point2dVector2d"; import { XAndY } from "../../../geometry3d/XYZProps"; import { ImplicitCurve2d } from "./ImplicitCurve2d"; /** * Internal class for parabola in the xy plane, with an angular parameterization. * * In uv local coordinates * * Let c = cos(theta) and s = sin(theta) * * The parabola is (u,v) = (s/(1+c), (1-c)/(1+c)) * * The uv derivative is (u',v') = (1/(c+1), 2s/(c+1)) * * Basic trig identities confirm that u^2 = v as expected for a parabola. * * This traces the parabola in a full theta range (-2PI < theta < 2PI). * * The angle theta = 2PI is the singular point. * * In XY coordinates the mapped parabola is * * x = A + Uu + Vv * * X = A + U*s/(1+c) + V*(1-2*c/(1+c)) * * X' = U * (1/(c+1) + V*2s/(c+1)) * @internal */ export declare class UnboundedParabola2d extends ImplicitCurve2d { /** The Cartesian coordinates of any center on the line. */ center: Point2d; /** The local u axis direction. */ vectorU: Vector2d; /** The local v axis direction. */ vectorV: Vector2d; private constructor(); /** Return a clone of this Parabola. */ clone(): UnboundedParabola2d; /** * Create an UnboundedParabola2d from an xy object and a radius. * @param center xy coordinates of center * @param vectorU vector from center to to theta=0 vertex, i.e., along axis on the "inside" of the curve * @param vectorV vector from center to the transverse direction. */ static createCenterAndAxisVectors(center: XAndY, vectorU: XAndY, vectorV: XAndY): UnboundedParabola2d; /** * Return the local (uv) coordinate of a global point. * @param spacePoint point for coordinate conversion */ globalToLocal(spacePoint: XAndY): Vector2d | undefined; /** * Returns xy coordinate on the Parabola. * @param radians parametric angle on the Parabola */ radiansToPoint2d(radians: number): Point2d | undefined; /** * Returns the tangent at given radians value. * @param radians parametric angle on the parabola */ radiansToTangentVector2d(radians: number): Vector2d | undefined; /** * Return the implicit function value at xy. * @param xy space point * @returns v - u*u */ functionValue(xy: XAndY): number; /** * Evaluate the (global coordinates) gradient (steepest descent) of the implicit function. * @param xy space point * @returns gradient vector for the implicit function */ gradient(xy: XAndY): Vector2d; /** * Solve for parametric radians at Parabola points which are perpendicular projections of spacePoint. * * Up to 4 solutions are possible. * @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 axes of the vectors are close * @param other second Parabola * @param negatedAndExchangedAxesAreEqual * * if false, a strong equality test requiring both U and V vectors to match * * This strong test is a test for identical parameterization * * if true, a weak equality test that allows U and V to be negated and or exchanged. * * The weak test is a test for the same implicit set * @returns true if identical to tolerance. */ isSameParabola(other: UnboundedParabola2d, negatedAndExchangedAxesAreEqual?: boolean): boolean; } //# sourceMappingURL=UnboundedParabola2d.d.ts.map