Calculate the point (x, y) on a hyperbola given x or y and the semi major/minor values of the hyperbolic.
hyperbolicPoint(
semiMajor: number,
semiMinor: number,
x?: number(Length),
y?: number(Length),
): Point2d
Arguments
| Name | Type | Description | Required |
|---|---|---|---|
semiMajor | number | The semi major value, a, of the hyperbolic equation x^2 / a ^ 2 - y^2 / b^2 = 1. | Yes |
semiMinor | number | The semi minor value, b, of the hyperbolic equation x^2 / a ^ 2 - y^2 / b^2 = 1. | Yes |
x | number(Length) | The x value. Calculates y and returns (x, y). Incompatible with y. | No |
y | number(Length) | The y value. Calculates x and returns (x, y). Incompatible with x. | No |
Returns
Point2d - A point in two dimensional space.
Examples
point = hyperbolicPoint(x = 5, semiMajor = 2, semiMinor = 1)