Intersection of Line and Generalized Ellipse

版本 1.0.3 (31.2 KB) 作者: e A
这个改进的函数用于计算直线与广义椭圆的交点。(This improved function returns the points of intersection between a line and a generalized ellipse.)
5.0 次下载
更新时间 2024/7/19
这是个改进的lineEllipse函数,用于计算直线与广义椭圆的交点。增加了异常参数处理,并且改进了交点有效性判断。
基于Paurakh的工作成果。具体参见:(Intersection of Line to Generalized Ellipse)。
This is an improved lineEllipse function for calculating the intersection of a line and a generalized ellipse. The processing of exception parameters is increased, and the validity judgment of intersection points is improved. Based on Paurakh's work. See: (Intersection of Line to Generalized Ellipse).
INPUT : a - major axis of Ellipse.
b - minor axis of Ellipse.
x0 - Abscissa of the center point of the ellipse.
y0 - Ordinate of the center point of the ellipse.
phi - Angle (in radian) between x-axis and the major axis,
counter-clockwise axis of rotation.
p, q - line is defined by (x/p + y/q = 1), with p and q as
x axis and y axis intercepts, p or q ∊ [-inf, inf].
OUTPUT : C1, C2 - respectively the two points of intersection of line and
ellipse are (C1, C2).
POST CONDITION:
If (line does not intersect) NaN is returned.
If a single point of intersection, (C1) = (C2) or one of the point
is NaN.
If two points of intersetion, two distinct (C1) and (C2) returned.
Copyright (c)2024, Aeron. Shanghai China.

引用格式

e A (2025). Intersection of Line and Generalized Ellipse (https://github.com/QXN173/matlab/releases/tag/1.0.3), GitHub. 检索时间: .

MATLAB 版本兼容性
创建方式 R2024a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

intersectionLineEllipse

版本 已发布 发行说明
1.0.3

See release notes for this release on GitHub: https://github.com/QXN173/matlab/releases/tag/1.0.3

1.0.2

update description

1.0.1

add title image

1.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库