test intersection of 2 rectangles

バージョン 1.1.0.0 (1.99 KB) 作成者: timo
Hyperplane separation theorem Author: Dan Oprisan/Timofte Bogdan
ダウンロード: 534
更新 2013/8/29

ライセンスの表示

Two convex objects do not overlap iff there exists a line (called axis) onto which the two objects' projections do not overlap.

SAT suggests an algorithm for testing whether two convex solids intersect or not.

Regardless of dimensionality, the separating axis is always a line. For example, in 3D, the space is separated by planes, but the separating axis is perpendicular to the separating plane.

The separating axis theorem can be applied for fast collision detection between polygon meshes. Each face's normal or other feature directions is used as a separating axis, as well as the cross products. Note that this yields possible separating axes, not separating lines/planes.

If the cross products were not used, certain edge-on-edge non-colliding cases would be treated as colliding. For increased efficiency, parallel axes may be calculated as a single axis.

引用

timo (2026). test intersection of 2 rectangles (https://jp.mathworks.com/matlabcentral/fileexchange/43230-test-intersection-of-2-rectangles), MATLAB Central File Exchange. 取得日: .

MATLAB リリースの互換性
作成: R2010b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersComputational Geometry についてさらに検索
タグ タグを追加
謝辞

ヒントを与えたファイル: iskandervito/S2_tilefinder

バージョン 公開済み リリース ノート
1.1.0.0

name

1.0.0.0