/** @packageDocumentation * @module CartesianGeometry */ import { Point2d, Vector2d } from "../../../geometry3d/Point2dVector2d"; import { XAndY } from "../../../geometry3d/XYZProps"; import { ImplicitCurve2d } from "./ImplicitCurve2d"; /** * Internal class for hyperbola in the xy plane. The hyperbola equation in angular parameterization is * * X = A + U * sec(theta) + V * tan(theta) * which means that in the (skewed and scaled) coordinate system with origin at A and local u and v as * multiples of U and V the implicit equation is u^2 - v^2 = 1 * which means the hyperbola opens along the positive and negative U axis with asymptotes at 45 degrees, * i.e., along the directions (U+V) and (U-V) * @internal */ export declare class UnboundedHyperbola2d 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 hyperbola. */ clone(): UnboundedHyperbola2d; /** * Create UnboundedHyperbola2d with scale factors. * * The implicit equation is (x/a)^2 - (y/b)^2 = 1 * @param centerX x coordinate of center * @param centerY y coordinate of center * @param scaleU scale factor along the U axis * @param scaleV scale factor along the V axis * @returns newly created hyperbola object */ static createFromCenterAndScales(centerX: number, centerY: number, scaleU: number, scaleV: number): UnboundedHyperbola2d; /** * Create an UnboundedHyperbola2d 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): UnboundedHyperbola2d; /** * 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 hyperbola. * @param radians parametric angle on the hyperbola */ radiansToPoint2d(radians: number): Point2d | undefined; /** * Returns the tangent at given radians value. * @param radians parametric angle on the hyperbola */ radiansToTangentVector2d(radians: number): Vector2d | undefined; /** * Return the implicit function value at xy. * @param xy space point * @returns squared local (uv) coordinates minus 1. */ functionValue(xy: XAndY): number; /** * Evaluate the 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 hyperbola 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): any; /** 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 hyperbola * @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. */ isSameHyperbola(other: UnboundedHyperbola2d, negatedAndExchangedAxesAreEqual?: boolean): boolean; } //# sourceMappingURL=UnboundedHyperbola2d.d.ts.map