Check if Points Inside a Prism
Version 1.0.6 (2,67 ko) par
Ayad Al-Rumaithi
Checks if points are inside a prism
This tool checks if points are inside a prism. Two example files are provided.
1-function I=CheckPointPrism(v1,v2,x,y,theta,vp): Checks if there the points are inside the prism.
2-function Plot_Prism(v1,v2,x,y,theta): Plots the prism.
Input:
v1: (3*1) vector of the origin point of the first polygonal face .
v2: (3*1) vector of the origin point of the second polygonal face.
x: (1*N) x-coordinates of the polygonal faces.
y: (1*N) y-coordinates of the polygonal faces.
theta: angle of rotation around the prism major axis.
vp: (3*N) coordinate matrix of N points.
output:
I: (1*N) logical vector containing 0 and 1. The value is 1 is if the point is inside the prism and 0 if it is outside.
Citation pour cette source
Ayad Al-Rumaithi (2025). Check if Points Inside a Prism (https://www.mathworks.com/matlabcentral/fileexchange/155092-check-if-points-inside-a-prism), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Créé avec
R2017b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.6 | Added website. |
||
1.0.5 | changed rotation matrix when rotating from -z to z direction |
||
1.0.4 | description |
||
1.0.3 | description |
||
1.0.2 | description |
||
1.0.1 | description |
||
1.0.0 |