Syntax
[n,nn,VL]=vectorinBB([BB,v,p])
Input Parameter
BB : | | Bounding Box |
v : | | vector to check |
p : | | point to start with; default is 0 |
Output Parameter
n : | | rows of integer [min i max i] |
nn : | | row [minx maxx miny maxy minz maxz] |
VL : | | Vertex list including p0 if possible |
Examples
vectorinBB([0 3 0 2 0 1],[.2 .2 .2],[.5 .5 .5]) % Point inside BB and solutions exist
vectorinBB([0 3 0 2 0 1],[.2 .2 .2],[5 5 5]) % Point outside BB and solutions exist
vectorinBB([0 3 0 2 0 1],[0 0 0],[0 5 0]) % Point outside BB and no soltion exist
vectorinBB([0 3 0 2 0 1],[0 0 0],[.5 .5 .5]) % Point is inside BB and only p0 exist
vectorinBB([0 3 0 2 0 1],[0 0 1],[.5 .5 .5]) % Point is inside BB and only p0 exist
Copyright 2019-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Last html export of this page out of FM database by TL: 2025-09-21