Check if Points Inside a Cylinder
Version 1.0.4 (2,24 ko) par
Ayad Al-Rumaithi
Checks if points are inside a cylinder
This tool checks if points are inside a cylinder. Example file is provided.
1-function I=CheckPointCylinder(vc1,vc2,d,vp): Checks if there the points are inside the cylinder.
2-function Plot_Cylinder(vc1,vc2,d): Plots the cylinder.
Input:
vc1 is (3*1) coordinate vector for the center of the first circular base of the cylinder.
vc2 is (3*1) coordinate vector for the center of the second circular base of the cylinder.
d is the diameter of the cylinder.
vp is (3*N) coordinate matrix of N points.
output:
I is (1*N) logical vector containing 0 and 1. The value is 1 is if the point is inside the cylinder and 0 if it is outside.
Citation pour cette source
Ayad Al-Rumaithi (2025). Check if Points Inside a Cylinder (https://www.mathworks.com/matlabcentral/fileexchange/123925-check-if-points-inside-a-cylinder), 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.4 | Added website |
||
1.0.3 | description |
||
1.0.2 | description |
||
1.0.1 | summary |
||
1.0.0 |