Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.0.0 - 日本語


orthProj

点の平面上のポリラインへの直交射影を計算する

呼び出し手順

[d,ptp,ind,c] = orthProj(data,pt)

引数

data

n 行 2 列配列. 最初の列にはポリラインのX座標, 2番目の列にはY座標を有します.

pt

2個のエントリを有する配列: 点の座標

d

指定した点とポリラインのデータ点の間の最小距離.

ptp

2個のエントリを有する配列: 距離が最小となる点の座標

ind

セグメント[ind ind+1]で ポリラインに最も近い点となる>.

c

直交射影の補間係数.

説明

平面上のポリラインへの点の直交射影を計算します.

x=linspace(0,1,30)';
y=sin(4*x.^3)/2;
clf(), isoview()
plot(x,y)
pt=[0.7 0.3];
plot(pt(1),pt(2),'xb')
[d,ptp,ind,c]=orthProj([x y],pt);
plot(x(ind:ind+1),y(ind:ind+1),'+r')
xpoly([pt(1);ptp(1)],[pt(2);ptp(2)])
e=gce();e.polyline_style=4;e.arrow_size_factor = 1.5;

pt=[0.75 -0.3];
plot(pt(1),pt(2),'xb')
[d,ptp,ind,c]=orthProj([x y],pt);
plot(x(ind:ind+1),y(ind:ind+1),'+r')
xpoly([pt(1);ptp(1)],[pt(2);ptp(2)])
e=gce();e.polyline_style=4;e.arrow_size_factor = 1.5;

参照

  • proj — 投影
  • householder — Householder orthogonal reflexion matrix. Symetrical wrt a plane
  • scaling — 点の集合をアフィン変換する
Report an issue
<< move transform rotate >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Mar 07 09:28:50 CET 2023